namespace QMVnSoft.SystemForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.Invoices;
    using QMVnSoft.Lists;
    using QMVnSoft.Opening;
    using QMVnSoft.Properties;
    using QMVnSoft.ReportForms;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Windows.Forms;

    public class FormMain : Form
    {
        private MenuItemControl BackupDataItem;
        private Button BANNER1;
        private Button BANNER2;
        private Button BANNER3;
        private Button BANNER4;
        private PictureBox BANNERPicture;
        private MainButtonControl BOTTOM1;
        private MainButtonControl BOTTOM2;
        private MainButtonControl BOTTOM3;
        private MainButtonControl BOTTOM4;
        private MainButtonControl BOTTOM5;
        private PictureBox BOTTOMPicture;
        private ToolStripComboBox CBoxYear;
        private MenuItemControl ClosePadItem;
        private ColumnHeader Column1;
        private MenuItemControl CompanySelectItem;
        private IContainer components;
        private MenuItemControl ExportHTKKTItem;
        private MenuItemControl HelpItem;
        private bool ib_CheckRestored;
        private int ii_ButtonIndex;
        private int ii_PartActivation;
        private MenuItemControl InstallFontItem;
        private MainButtonControl INVOICE01;
        private MainButtonControl INVOICE02;
        private MainButtonControl INVOICE03;
        private MainButtonControl INVOICE04;
        private MainButtonControl INVOICE05;
        private MainButtonControl INVOICE06;
        private MainButtonControl INVOICE07;
        private MainButtonControl INVOICE08;
        private MenuItemControl InvoiceHistoryItem;
        private MenuItemControl InvoiceItem;
        private Label lblBackInvoice;
        private PictureBox LEFTPicture;
        private ToolStripSeparator LineItem001;
        private ToolStripSeparator LineItem002;
        private ToolStripSeparator LineItem003;
        private ToolStripSeparator LineItem004;
        private ToolStripSeparator LineItem005;
        private ToolStripSeparator LineItem007;
        private ToolStripSeparator LineItem008;
        private ToolStripSeparator LineItem009;
        private ToolStripSeparator LineItem010;
        private ToolStripSeparator LineItem011;
        private ToolStripSeparator LineItem012;
        private ToolStripSeparator LineItem013;
        private ToolStripSeparator LineItem014;
        private ToolStripSeparator LineItem016;
        private PictureBox LINEPicture1;
        private PictureBox LINEPicture2;
        private PictureBox LINEPicture3;
        private PictureBox LINEPicture4;
        private MenuItemControl ListAccountItem;
        private MenuItemControl ListBarItem;
        private MenuItemControl ListCapitalItem;
        private MenuItemControl ListCategoryItem;
        private MenuItemControl ListContractItem;
        private MenuItemControl ListCurrencyItem;
        private MenuItemControl ListCustGroupItem;
        private MenuItemControl ListCustomerItem;
        private MenuItemControl ListDepartItem;
        private MenuItemControl ListElementItem;
        private MenuItemControl ListFixedAssetGroupItem;
        private MenuItemControl ListItemGroupItem;
        private MenuItemControl ListItemItem;
        private MenuItemControl ListNormGroupItem;
        private MenuItemControl ListProductItem;
        private MenuItemControl ListPurposeItem;
        private MenuItemControl ListReasonItem;
        private MenuItemControl ListStockItem;
        private MenuItemControl ListTypeItem;
        private MenuItemControl LockDataItem;
        private PictureBox LOGOPicture;
        private ListView lstReports;
        private MenuStrip MainMenu;
        private Panel MainScreenBox;
        private ToolStrip MainToolBar;
        private MenuItemControl MemvarsItem;
        private MainButtonControl MODUL01;
        private MainButtonControl MODUL02;
        private MainButtonControl MODUL03;
        private MainButtonControl MODUL04;
        private MainButtonControl MODUL05;
        private MainButtonControl MODUL06;
        private MainButtonControl MODUL07;
        private MainButtonControl MODUL08;
        private MainButtonControl oLastButton;
        private MainButtonControl oLastModulButton;
        private Control oUserActiveControl;
        private MenuItemControl RegisterItem;
        private MenuItemControl ReportBalanceItem;
        private MenuItemControl ReportBarItem;
        private MenuItemControl ReportConstructItem;
        private MenuItemControl ReportDebtItem;
        private MenuItemControl ReportFixAssetItem;
        private MenuItemControl ReportItemItem;
        private MenuItemControl ReportLedgerItem;
        private MenuItemControl ReportProductItem;
        private MenuItemControl ReportStockItem;
        private MenuItemControl ReportTaxItem;
        private MenuItemControl RestoreDataItem;
        private PictureBox RIGHTPicture;
        private MenuItemControl SearchParaItem;
        private MenuItemControl SupportItem;
        private MenuItemControl SystemBarItem;
        private ToolTip TipControl;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripSeparator toolStripSeparator12;
        private PictureBox TOPPicture;
        private MenuItemControl UpdateTaxCodeItem;
        private ToolStripSeparator toolStripSeparator2;
        private ToolStripMenuItem SendDataItem;
        private ToolStripMenuItem ReceivedDataItem;
        private ToolStripSeparator toolStripSeparator3;
        private ToolStripSeparator toolStripSeparator4;
        private ToolStripMenuItem CheckDataItem;
        private ToolStripSeparator toolStripSeparator5;
        private MenuItemControl UserManagerItem;

        public FormMain()
        {
            this.InitializeComponent();
            this.SetLOGOPicture();
            this.SetMainCaption();
            this.SetWorkingYears();
            this.ChangeModul(1);
            this.LastModulButton = this.MODUL01;
            this.LastButton = this.MODUL01;
            this.UserActiveControl = this.MODUL01;
        }       

        private void BackupDataItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Hãy đóng tất cả các chức năng khi thực hiện chức năng này!\nBạn chắc chắn đã đóng hết các chức năng?", AppInstance.SoftwareName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                new FormBackupDatabase().ShowDialog();
            }
        }

        private void BANNER1_Click(object sender, EventArgs e)
        {
            this.BANNER1.BackgroundImage = Resources.BG_FOCUSED;
            this.BANNER2.BackgroundImage = Resources.BG;
            this.MODUL01.Text = "Kế toán tiền mặt, tiền gửi";
            this.MODUL02.Text = "Kế toán vật tư, hàng hóa";
            this.MODUL03.Text = "Kế toán công trình";
            this.MODUL04.Text = "Kế toán sản xuất - giá thành";
            this.MODUL05.Text = "Kế toán tài sản, công cụ, chi phí";
            this.MODUL06.Text = "Kế toán tổng hợp";
            this.MODUL07.Text = "Quản lý kho";
            this.MODUL08.Text = "Quản trị hệ thống";
            this.MODUL01.UserModulButton = true;
            this.MODUL02.UserModulButton = true;
            this.MODUL03.UserModulButton = true;
            this.MODUL04.UserModulButton = true;
            this.MODUL05.UserModulButton = true;
            this.MODUL06.UserModulButton = true;
            this.MODUL07.UserModulButton = true;
            this.MODUL08.UserModulButton = true;
            this.MODUL01.MenuItemNumber = 0L;
            this.MODUL02.MenuItemNumber = 0L;
            this.MODUL03.MenuItemNumber = 0L;
            this.MODUL04.MenuItemNumber = 0L;
            this.MODUL05.MenuItemNumber = 0L;
            this.MODUL06.MenuItemNumber = 0L;
            this.MODUL07.MenuItemNumber = 0L;
            this.MODUL08.MenuItemNumber = 0L;
            if (this.LastModulButton != null)
            {
                this.LastModulButton.BackgroundImage = this.LastModulButton.UserFocusedImage;
            }
        }

        private void BANNER2_Click(object sender, EventArgs e)
        {
            this.BANNER1.BackgroundImage = Resources.BG;
            this.BANNER2.BackgroundImage = Resources.BG_FOCUSED;
            this.MODUL01.Text = "Số dư đầu kỳ tài khoản";
            this.MODUL02.Text = "Số dư đầu kỳ tài khoản ngoại bảng";
            this.MODUL03.Text = "Tồn kho đầu kỳ kế toán";
            this.MODUL04.Text = "Tồn kho đầu kỳ thực tế";
            this.MODUL05.Text = "Số dư đầu kỳ công trình";
            this.MODUL06.Text = "";
            this.MODUL07.Text = "";
            this.MODUL08.Text = "";
            this.MODUL01.UserModulButton = false;
            this.MODUL02.UserModulButton = false;
            this.MODUL03.UserModulButton = false;
            this.MODUL04.UserModulButton = false;
            this.MODUL05.UserModulButton = false;
            this.MODUL06.UserModulButton = false;
            this.MODUL07.UserModulButton = false;
            this.MODUL08.UserModulButton = false;
            this.MODUL01.MenuItemNumber = 0xceL;
            this.MODUL02.MenuItemNumber = 0xceL;
            this.MODUL03.MenuItemNumber = 0xd3L;
            this.MODUL04.MenuItemNumber = 0xd8L;
            this.MODUL05.MenuItemNumber = 0xddL;
            this.MODUL06.MenuItemNumber = 0L;
            this.MODUL07.MenuItemNumber = 0L;
            this.MODUL08.MenuItemNumber = 0L;
            if (this.LastModulButton != null)
            {
                this.LastModulButton.BackgroundImage = this.LastModulButton.UserMouseLeaveImage;
            }
        }

        private void BOTTOM1_Click(object sender, EventArgs e)
        {
            new FormPriceCalculate().Show();
        }

        private void BOTTOM2_Click(object sender, EventArgs e)
        {
            new FormFACalculate().Show();
        }

        private void BOTTOM3_Click(object sender, EventArgs e)
        {
            new FormDmKsLister().Show();
        }

        private void BOTTOM4_Click(object sender, EventArgs e)
        {
            new FormSendData(false).Show();
        }

        private void BOTTOM5_Click(object sender, EventArgs e)
        {
            new FormBackupDatabase().Show();
        }       

        private void CallFunction(long pi_FunctionID)
        {
            FormControl control = null;
            long num = pi_FunctionID;
            if (num <= 0x132L)
            {
                if (num <= 0xd8L)
                {
                    if (num <= 0x29L)
                    {
                        switch (num)
                        {
                            case 0x15L:
                                control = new FormDmFileLister();
                                goto Label_06BC;

                            case 0x1aL:
                                control = new FormUserLister();
                                goto Label_06BC;

                            case 0x29L:
                                control = new FormDataLock();
                                goto Label_06BC;

                            case 11L:
                                control = new FormMemvars();
                                control.ShowDialog();
                                return;

                            case 0x10L:
                                control = new FormDmCtLister();
                                goto Label_06BC;
                        }
                    }
                    else if (num <= 0xabL)
                    {
                        if (num <= 60L)
                        {
                            if (num < 0x38L)
                            {
                                goto Label_06BC;
                            }
                            switch (((int) (num - 0x38L)))
                            {
                                case 0:
                                    control = new FormExportHTKK();
                                    goto Label_06BC;

                                case 1:
                                case 3:
                                    goto Label_06BC;

                                case 2:
                                    this.ShowInvoiceHistory();
                                    return;

                                case 4:
                                    control = new FormUpdateTaxCode();
                                    goto Label_06BC;
                            }
                        }
                        switch (num)
                        {
                            case 0xa6L:
                                control = new FormDmNhTsLister();
                                ((FormDmNhTsLister) control).IsParentForm = true;
                                ((FormDmNhTsLister) control).FixedAssetType = "C";
                                goto Label_06BC;

                            case 0xabL:
                                control = new FormDmNhTsLister();
                                ((FormDmNhTsLister) control).IsParentForm = true;
                                ((FormDmNhTsLister) control).FixedAssetType = "C";
                                ((FormDmNhTsLister) control).CheckEdited = true;
                                goto Label_06BC;
                        }
                    }
                    else
                    {
                        switch (num)
                        {
                            case 0xb0L:
                                control = new FormDmNhTsLister();
                                ((FormDmNhTsLister) control).IsParentForm = true;
                                ((FormDmNhTsLister) control).FixedAssetType = "K";
                                goto Label_06BC;

                            case 0xb5L:
                                control = new FormDmNhTsLister();
                                ((FormDmNhTsLister) control).IsParentForm = true;
                                ((FormDmNhTsLister) control).FixedAssetType = "K";
                                ((FormDmNhTsLister) control).CheckEdited = true;
                                goto Label_06BC;

                            case 0xd8L:
                                control = new FormCDKHOLister(false);
                                goto Label_06BC;
                        }
                    }
                }
                else
                {
                    switch (num)
                    {
                        case 0xfbL:
                            control = new FormCTKTLister("NHBC");
                            goto Label_06BC;

                        case 0x100L:
                            control = new FormCTKTLister("NHBN");
                            goto Label_06BC;

                        case 0x114L:
                            control = new FormCTMHLister("PNMH");
                            goto Label_06BC;

                        case 0xf1L:
                            control = new FormCTKTLister("TMPT");
                            goto Label_06BC;

                        case 0xf6L:
                            control = new FormCTKTLister("TMPC");
                            goto Label_06BC;

                        case 0x119L:
                            control = new FormCTMHLister("PNCP");
                            goto Label_06BC;

                        case 0x11eL:
                            control = new FormCTMHLister("PXTL");
                            goto Label_06BC;

                        case 0x123L:
                            control = new FormCTNXLister("PNNB");
                            goto Label_06BC;

                        case 0x128L:
                            control = new FormCTNXLister("PXNB");
                            goto Label_06BC;

                        case 0x12dL:
                            control = new FormCTNXLister("PXDC");
                            goto Label_06BC;

                        case 0x132L:
                            control = new FormCTMHLister("PNXT");
                            goto Label_06BC;
                    }
                }
            }
            else if (num <= 0x178L)
            {
                switch (num)
                {
                    case 0x141L:
                        control = new FormCTKTLister("PKCT");
                        goto Label_06BC;

                    case 0x146L:
                        control = new FormCTSXLister("PLSX");
                        goto Label_06BC;

                    case 0x14bL:
                        control = new FormCTNXLister("PXSP");
                        goto Label_06BC;

                    case 0x137L:
                        control = new FormCTNXLister("PXCT");
                        goto Label_06BC;

                    case 0x13cL:
                        control = new FormCTNXLister("PNCT");
                        goto Label_06BC;

                    case 0x150L:
                        control = new FormCTNXLister("PNSP");
                        goto Label_06BC;

                    case 0x155L:
                        control = new FormCTNXLister("PNTP");
                        goto Label_06BC;

                    case 0x15aL:
                        control = new FormCTTPLister("PCTP");
                        goto Label_06BC;

                    case 0x15fL:
                        control = new FormCTKTLister("PKSP");
                        goto Label_06BC;

                    case 0x173L:
                        if (AppInstance.BarcodeReader)
                        {
                            control = new FormCTBHBarcodeEditor("HDBH", "AppSOFT2009");
                        }
                        else
                        {
                            control = new FormCTBHLister("HDBH");
                        }
                        goto Label_06BC;

                    case 0x178L:
                        control = new FormCTBHLister("HBTL");
                        goto Label_06BC;
                }
            }
            else if (num <= 0x191L)
            {
                if (num <= 0x182L)
                {
                    if (num <= 0x17dL)
                    {
                        if (num < 0x17bL)
                        {
                            goto Label_06BC;
                        }
                        switch (((int) (num - 0x17bL)))
                        {
                            case 0:
                                control = new FormCTKTLister("PKTS");
                                goto Label_06BC;

                            case 1:
                                goto Label_06BC;

                            case 2:
                                control = new FormCTKTLister("PKTK");
                                goto Label_06BC;
                        }
                    }
                    if (num == 0x182L)
                    {
                        control = new FormCTKTLister("PKKT");
                    }
                }
                else
                {
                    switch (num)
                    {
                        case 0x187L:
                            control = new FormVATInput("1");
                            goto Label_06BC;

                        case 0x18cL:
                            control = new FormVATInput("2");
                            goto Label_06BC;

                        case 0x191L:
                            control = new FormCTNBLister("NBKT");
                            goto Label_06BC;
                    }
                }
            }
            else
            {
                switch (num)
                {
                    case 0x196L:
                        control = new FormCTKHOLister("PWNK");
                        goto Label_06BC;

                    case 0x19bL:
                        if (AppInstance.BarcodeReader)
                        {
                            control = new FormCTKHOBarcodeEditor("PWXK", "AppSOFT2009");
                        }
                        else
                        {
                            control = new FormCTKHOLister("PWXK");
                        }
                        goto Label_06BC;

                    case 0x1a0L:
                        control = new FormCTKHOLister("PWDC");
                        goto Label_06BC;

                    case 0x1b4L:
                        control = new FormFACalculate();
                        goto Label_06BC;

                    case 0x1b9L:
                        if (this.ButtonIndex == 4)
                        {
                            control = new FormDmPBTTCTLister(null, null, "1");
                        }
                        else if (this.ButtonIndex == 5)
                        {
                            control = new FormDmPBHSCTLister(null, null, "2");
                        }
                        else if (this.ButtonIndex == 6)
                        {
                            control = new FormDmPBTLCTLister(null, null, "3");
                        }
                        else
                        {
                            control = new FormDmKCGTCTLister(null, null, "4");
                        }
                        goto Label_06BC;

                    case 0x1beL:
                        control = new FormProductMain();
                        goto Label_06BC;
                }
            }
        Label_06BC:
            if (control != null)
            {
                control.Show();
            }
        }

        private void CBoxYear_TextChanged(object sender, EventArgs e)
        {
            AppInstance.WorkingYear = Convert.ToInt16(this.CBoxYear.Text);
        }

        private void ChangeModul(int pi_Modul)
        {
            if (this.PartActivation != pi_Modul)
            {
                this.PartActivation = pi_Modul;
                switch (pi_Modul)
                {
                    case 1:
                        this.INVOICE01.Top = 0xd3;
                        this.INVOICE02.Top = 0xf8;
                        this.INVOICE03.Top = 0x11d;
                        this.INVOICE04.Top = 0x142;
                        this.lblBackInvoice.Top = 0x167;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.lblBackInvoice.Visible = true;
                        this.INVOICE01.Text = "Phiếu thu";
                        this.INVOICE02.Text = "Phiếu chi";
                        this.INVOICE03.Text = "Báo có";
                        this.INVOICE04.Text = "Báo nợ";
                        this.INVOICE01.MenuItemNumber = 0xf1L;
                        this.INVOICE02.MenuItemNumber = 0xf6L;
                        this.INVOICE03.MenuItemNumber = 0xfbL;
                        this.INVOICE04.MenuItemNumber = 0x100L;
                        this.INVOICE05.Visible = false;
                        this.INVOICE06.Visible = false;
                        this.INVOICE07.Visible = false;
                        this.INVOICE08.Visible = false;
                        this.FillReports("00");
                        return;

                    case 2:
                        this.INVOICE01.Top = 0x8b;
                        this.INVOICE02.Top = 0xaf;
                        this.INVOICE03.Top = 0xd3;
                        this.INVOICE04.Top = 0xf8;
                        this.INVOICE05.Top = 0x11d;
                        this.INVOICE06.Top = 0x142;
                        this.INVOICE07.Top = 0x167;
                        this.INVOICE08.Top = 0x18c;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.INVOICE06.Visible = true;
                        this.INVOICE07.Visible = true;
                        this.INVOICE08.Visible = true;
                        this.lblBackInvoice.Visible = false;
                        this.INVOICE01.Text = "Phiếu nhập mua";
                        this.INVOICE02.Text = "Phiếu chi phí mua";
                        this.INVOICE03.Text = "Phiếu nhập nội bộ";
                        this.INVOICE04.Text = "Phiếu xuất";
                        this.INVOICE05.Text = "Phiếu xuất điều chuyển";
                        this.INVOICE06.Text = "Hóa đơn bán hàng";
                        this.INVOICE07.Text = "Hàng bán bị trả lại";
                        this.INVOICE08.Text = "Xuất trả lại người bán";
                        this.INVOICE01.MenuItemNumber = 0x114L;
                        this.INVOICE02.MenuItemNumber = 0x119L;
                        this.INVOICE03.MenuItemNumber = 0x123L;
                        this.INVOICE04.MenuItemNumber = 0x128L;
                        this.INVOICE05.MenuItemNumber = 0x12dL;
                        this.INVOICE06.MenuItemNumber = 0x173L;
                        this.INVOICE07.MenuItemNumber = 0x178L;
                        this.INVOICE08.MenuItemNumber = 0x11eL;
                        this.FillReports("10");
                        return;

                    case 3:
                        this.INVOICE01.Top = 0x8b;
                        this.INVOICE02.Top = 0xaf;
                        this.INVOICE03.Top = 0xd3;
                        this.INVOICE04.Top = 0xf8;
                        this.INVOICE05.Top = 0x11d;
                        this.INVOICE06.Top = 0x142;
                        this.INVOICE07.Top = 0x167;
                        this.INVOICE08.Top = 0x18c;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.INVOICE06.Visible = true;
                        this.INVOICE07.Visible = true;
                        this.INVOICE08.Visible = true;
                        this.lblBackInvoice.Visible = false;
                        this.INVOICE01.Text = "Phiếu nhập xuất thẳng";
                        this.INVOICE02.Text = "Xuất nguyên vật liệu";
                        this.INVOICE03.Text = "Nhập lại nguyên vật liệu";
                        this.INVOICE04.Text = "Phân bổ trực tiếp";
                        this.INVOICE05.Text = "Phân bổ hệ số";
                        this.INVOICE06.Text = "Phân bổ tỷ lệ";
                        this.INVOICE07.Text = "Kết chuyển giá thành";
                        this.INVOICE08.Text = "Chứng từ phân bổ";
                        this.INVOICE01.MenuItemNumber = 0x132L;
                        this.INVOICE02.MenuItemNumber = 0x137L;
                        this.INVOICE03.MenuItemNumber = 0x13cL;
                        this.INVOICE04.MenuItemNumber = 0x1b9L;
                        this.INVOICE05.MenuItemNumber = 0x1b9L;
                        this.INVOICE06.MenuItemNumber = 0x1b9L;
                        this.INVOICE07.MenuItemNumber = 0x1b9L;
                        this.INVOICE08.MenuItemNumber = 0x141L;
                        this.FillReports("15");
                        return;

                    case 4:
                        this.INVOICE01.Top = 0x9d;
                        this.INVOICE02.Top = 0xc1;
                        this.INVOICE03.Top = 0xe5;
                        this.INVOICE04.Top = 0x10a;
                        this.INVOICE05.Top = 0x12f;
                        this.INVOICE06.Top = 340;
                        this.INVOICE07.Top = 0x179;
                        this.lblBackInvoice.Top = 0x19e;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.INVOICE06.Visible = true;
                        this.INVOICE07.Visible = true;
                        this.lblBackInvoice.Visible = true;
                        this.INVOICE01.Text = "Lệnh sản xuất";
                        this.INVOICE02.Text = "Xuất nguyên vật liệu";
                        this.INVOICE03.Text = "Nhập lại nguyên vật liệu";
                        this.INVOICE04.Text = "Nhập thành phẩm";
                        this.INVOICE05.Text = "Chuyển thành phẩm";
                        this.INVOICE06.Text = "Phân bổ, tính giá thành";
                        this.INVOICE07.Text = "Chứng từ phân bổ";
                        this.INVOICE01.MenuItemNumber = 0x146L;
                        this.INVOICE02.MenuItemNumber = 0x14bL;
                        this.INVOICE03.MenuItemNumber = 0x150L;
                        this.INVOICE04.MenuItemNumber = 0x155L;
                        this.INVOICE05.MenuItemNumber = 0x15aL;
                        this.INVOICE06.MenuItemNumber = 0x1beL;
                        this.INVOICE07.MenuItemNumber = 0x15fL;
                        this.INVOICE08.Visible = false;
                        this.FillReports("20");
                        return;

                    case 5:
                        this.INVOICE01.Top = 0xc1;
                        this.INVOICE02.Top = 0xe5;
                        this.INVOICE03.Top = 0x10a;
                        this.INVOICE04.Top = 0x12f;
                        this.INVOICE05.Top = 340;
                        this.lblBackInvoice.Top = 0x179;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.lblBackInvoice.Visible = true;
                        this.INVOICE01.Text = "Đăng ký tài sản";
                        this.INVOICE02.Text = "Sửa tài sản";
                        this.INVOICE03.Text = "Đăng ký công cụ, chi phí";
                        this.INVOICE04.Text = "Sửa công cụ, chi phí";
                        this.INVOICE05.Text = "Chứng từ phân bổ";
                        this.INVOICE01.MenuItemNumber = 0xa6L;
                        this.INVOICE02.MenuItemNumber = 0xabL;
                        this.INVOICE03.MenuItemNumber = 0xb0L;
                        this.INVOICE04.MenuItemNumber = 0xb5L;
                        this.INVOICE05.MenuItemNumber = 0x17bL;
                        this.INVOICE06.Visible = false;
                        this.INVOICE07.Visible = false;
                        this.INVOICE08.Visible = false;
                        this.FillReports("25");
                        return;

                    case 6:
                        this.INVOICE01.Top = 0xc1;
                        this.INVOICE02.Top = 0xe5;
                        this.INVOICE03.Top = 0x10a;
                        this.INVOICE04.Top = 0x12f;
                        this.INVOICE05.Top = 340;
                        this.lblBackInvoice.Top = 0x179;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.lblBackInvoice.Visible = true;
                        this.INVOICE01.Text = "Phiếu kế toán";
                        this.INVOICE02.Text = "Chứng từ khóa sổ";
                        this.INVOICE03.Text = "Hóa đơn huỷ";
                        this.INVOICE04.Text = "Hóa đơn bổ sung";
                        this.INVOICE05.Text = "Chứng từ ngoại bảng";
                        this.INVOICE01.MenuItemNumber = 0x17dL;
                        this.INVOICE02.MenuItemNumber = 0x182L;
                        this.INVOICE03.MenuItemNumber = 0x187L;
                        this.INVOICE04.MenuItemNumber = 0x18cL;
                        this.INVOICE05.MenuItemNumber = 0x191L;
                        this.INVOICE06.Visible = false;
                        this.INVOICE07.Visible = false;
                        this.INVOICE08.Visible = false;
                        this.FillReports("00");
                        return;

                    case 7:
                        this.INVOICE01.Top = 0xe5;
                        this.INVOICE02.Top = 0x10a;
                        this.INVOICE03.Top = 0x12f;
                        this.lblBackInvoice.Top = 340;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.lblBackInvoice.Visible = true;
                        this.INVOICE01.Text = "Phiếu nhập kho";
                        this.INVOICE02.Text = "Phiếu xuất kho";
                        this.INVOICE03.Text = "Phiếu xuất điều chuyển";
                        this.INVOICE01.MenuItemNumber = 0x196L;
                        this.INVOICE02.MenuItemNumber = 0x19bL;
                        this.INVOICE03.MenuItemNumber = 0x1a0L;
                        this.INVOICE04.Visible = false;
                        this.INVOICE05.Visible = false;
                        this.INVOICE06.Visible = false;
                        this.INVOICE07.Visible = false;
                        this.INVOICE08.Visible = false;
                        this.FillReports("45");
                        return;

                    case 8:
                        this.INVOICE01.Top = 0x8b;
                        this.INVOICE02.Top = 0xaf;
                        this.INVOICE03.Top = 0xd3;
                        this.INVOICE04.Top = 0xf8;
                        this.INVOICE05.Top = 0x11d;
                        this.INVOICE06.Top = 0x142;
                        this.INVOICE07.Top = 0x167;
                        this.INVOICE08.Top = 0x18c;
                        this.INVOICE01.Visible = true;
                        this.INVOICE02.Visible = true;
                        this.INVOICE03.Visible = true;
                        this.INVOICE04.Visible = true;
                        this.INVOICE05.Visible = true;
                        this.INVOICE06.Visible = true;
                        this.INVOICE07.Visible = true;
                        this.INVOICE08.Visible = true;
                        this.lblBackInvoice.Visible = false;
                        this.INVOICE01.Text = "Tham số hệ thống";
                        this.INVOICE02.Text = "Tham số chứng từ";
                        this.INVOICE03.Text = "Tham số Tìm kiếm";
                        this.INVOICE04.Text = "Quản lý người sử dụng";
                        this.INVOICE05.Text = "Khóa dữ liệu";
                        this.INVOICE06.Text = "Lịch sử chứng từ";
                        this.INVOICE07.Text = "Cập nhật mã số thuế";
                        this.INVOICE08.Text = "Xuất báo cáo thuế";
                        this.INVOICE01.MenuItemNumber = 11L;
                        this.INVOICE02.MenuItemNumber = 0x10L;
                        this.INVOICE03.MenuItemNumber = 0x15L;
                        this.INVOICE04.MenuItemNumber = 0x1aL;
                        this.INVOICE05.MenuItemNumber = 0x29L;
                        this.INVOICE06.MenuItemNumber = 0x3aL;
                        this.INVOICE07.MenuItemNumber = 60L;
                        this.INVOICE08.MenuItemNumber = 0x38L;
                        this.FillReports("35");
                        return;
                }
            }
        }

        private void ClosePadItem_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void CompanySelectItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Hãy đóng tất cả các chức năng khi thực hiện chức năng này!\nBạn chắc chắn đã đóng hết các chức năng?", AppInstance.SoftwareName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                new FormCompanyList().ShowDialog();
                this.SetMainCaption();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void ExportHTKKTItem_Click(object sender, EventArgs e)
        {
            new FormExportHTKK().Show();
        }

        private void FillReports(string ps_ReportGroups)
        {
            DataTable reportList = new ReportDataAccess().GetReportList(AppInstance.UserName, ps_ReportGroups);
            this.lstReports.Items.Clear();
            int num = 0;
            foreach (DataRow row in reportList.Rows)
            {
                this.lstReports.Items.Add((string) row["Bar"]);
                this.lstReports.Items[num].SubItems.Add((string) row["Bar_E"]);
                this.lstReports.Items[num].SubItems.Add((string) row["Title"]);
                this.lstReports.Items[num].SubItems.Add(row["Title_E"].ToString());
                this.lstReports.Items[num].SubItems.Add(row["FormFile"].ToString());
                this.lstReports.Items[num].SubItems.Add(row["RepoFile"].ToString());
                this.lstReports.Items[num].SubItems.Add((string) row["RepoGrp"]);
                this.lstReports.Items[num].SubItems.Add(row["Series"].ToString());
                this.lstReports.Items[num].SubItems.Add(((bool) row["OnTop"]) ? "1" : "0");
                this.lstReports.Items[num].SubItems.Add(row["Stt0"].ToString());
                this.lstReports.Items[num].SubItems.Add(row["Stt"].ToString());
                num++;
            }
            if (this.lstReports.Items.Count > 0)
            {
                this.lstReports.Items[0].Selected = true;
            }
        }

        private void ForumItem_Click(object sender, EventArgs e)
        {
            
        }

        private Control GetUserBackControl()
        {
            int tabIndex = 4;
            Control control = null;
            foreach (Control control2 in this.MainScreenBox.Controls)
            {
                if ((((control2 is Button) && !string.IsNullOrEmpty((control2 as Button).Text)) && ((control2.TabIndex < this.UserActiveControl.TabIndex) && control2.Visible)) && (control2.TabIndex > tabIndex))
                {
                    tabIndex = control2.TabIndex;
                    control = control2;
                }
                else if (((control2 is ListView) && (control2.TabIndex < this.UserActiveControl.TabIndex)) && (control2.TabIndex > tabIndex))
                {
                    tabIndex = control2.TabIndex;
                    control = control2;
                }
            }
            if (control == null)
            {
                control = this.BOTTOM5;
            }
            return control;
        }

        private Control GetUserNextControl()
        {
            int tabIndex = 0x1b;
            Control control = null;
            foreach (Control control2 in this.MainScreenBox.Controls)
            {
                if ((((control2 is Button) && !string.IsNullOrEmpty((control2 as Button).Text)) && ((control2.TabIndex > this.UserActiveControl.TabIndex) && control2.Visible)) && (control2.TabIndex < tabIndex))
                {
                    tabIndex = control2.TabIndex;
                    control = control2;
                }
                else if (((control2 is ListView) && (control2.TabIndex > this.UserActiveControl.TabIndex)) && (control2.TabIndex < tabIndex))
                {
                    tabIndex = control2.TabIndex;
                    control = control2;
                }
            }
            if (control == null)
            {
                control = this.MODUL01;
            }
            return control;
        }

        private void HelpItem_Click(object sender, EventArgs e)
        {
            
        }

        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
            System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("Bảng kê chứng từ");
            System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Sổ chi tiết tài khoản");
            System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Sổ tổng hợp tài khoản");
            System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Sổ quỹ tiền mặt");
            System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("Sổ quỹ tiền gửi");
            this.MainMenu = new System.Windows.Forms.MenuStrip();
            this.SystemBarItem = new QMVnSoft.Controls.MenuItemControl();
            this.ClosePadItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem001 = new System.Windows.Forms.ToolStripSeparator();
            this.MemvarsItem = new QMVnSoft.Controls.MenuItemControl();
            this.InvoiceItem = new QMVnSoft.Controls.MenuItemControl();
            this.SearchParaItem = new QMVnSoft.Controls.MenuItemControl();
            this.UserManagerItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem002 = new System.Windows.Forms.ToolStripSeparator();
            this.CompanySelectItem = new QMVnSoft.Controls.MenuItemControl();
            this.LockDataItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem003 = new System.Windows.Forms.ToolStripSeparator();
            this.BackupDataItem = new QMVnSoft.Controls.MenuItemControl();
            this.RestoreDataItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem004 = new System.Windows.Forms.ToolStripSeparator();
            this.InvoiceHistoryItem = new QMVnSoft.Controls.MenuItemControl();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.CheckDataItem = new System.Windows.Forms.ToolStripMenuItem();
            this.ListBarItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListAccountItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListCurrencyItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem007 = new System.Windows.Forms.ToolStripSeparator();
            this.ListCustGroupItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListCustomerItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListContractItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem008 = new System.Windows.Forms.ToolStripSeparator();
            this.ListDepartItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem009 = new System.Windows.Forms.ToolStripSeparator();
            this.ListElementItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListNormGroupItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListCategoryItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListProductItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem010 = new System.Windows.Forms.ToolStripSeparator();
            this.ListTypeItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListStockItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListItemGroupItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListItemItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem016 = new System.Windows.Forms.ToolStripSeparator();
            this.ListFixedAssetGroupItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListCapitalItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListPurposeItem = new QMVnSoft.Controls.MenuItemControl();
            this.ListReasonItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportBarItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportLedgerItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportDebtItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem011 = new System.Windows.Forms.ToolStripSeparator();
            this.ReportItemItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportConstructItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportProductItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem012 = new System.Windows.Forms.ToolStripSeparator();
            this.ReportFixAssetItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem013 = new System.Windows.Forms.ToolStripSeparator();
            this.ReportTaxItem = new QMVnSoft.Controls.MenuItemControl();
            this.ReportBalanceItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem014 = new System.Windows.Forms.ToolStripSeparator();
            this.ReportStockItem = new QMVnSoft.Controls.MenuItemControl();
            this.SupportItem = new QMVnSoft.Controls.MenuItemControl();
            this.HelpItem = new QMVnSoft.Controls.MenuItemControl();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.UpdateTaxCodeItem = new QMVnSoft.Controls.MenuItemControl();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.ExportHTKKTItem = new QMVnSoft.Controls.MenuItemControl();
            this.LineItem005 = new System.Windows.Forms.ToolStripSeparator();
            this.RegisterItem = new QMVnSoft.Controls.MenuItemControl();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.SendDataItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.ReceivedDataItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
            this.InstallFontItem = new QMVnSoft.Controls.MenuItemControl();
            this.MainToolBar = new System.Windows.Forms.ToolStrip();
            this.CBoxYear = new System.Windows.Forms.ToolStripComboBox();
            this.MainScreenBox = new System.Windows.Forms.Panel();
            this.lblBackInvoice = new System.Windows.Forms.Label();
            this.BANNERPicture = new System.Windows.Forms.PictureBox();
            this.LOGOPicture = new System.Windows.Forms.PictureBox();
            this.LINEPicture3 = new System.Windows.Forms.PictureBox();
            this.LINEPicture2 = new System.Windows.Forms.PictureBox();
            this.LINEPicture4 = new System.Windows.Forms.PictureBox();
            this.LINEPicture1 = new System.Windows.Forms.PictureBox();
            this.RIGHTPicture = new System.Windows.Forms.PictureBox();
            this.BOTTOMPicture = new System.Windows.Forms.PictureBox();
            this.LEFTPicture = new System.Windows.Forms.PictureBox();
            this.TOPPicture = new System.Windows.Forms.PictureBox();
            this.BOTTOM5 = new QMVnSoft.Controls.MainButtonControl();
            this.BOTTOM3 = new QMVnSoft.Controls.MainButtonControl();
            this.BOTTOM2 = new QMVnSoft.Controls.MainButtonControl();
            this.BOTTOM1 = new QMVnSoft.Controls.MainButtonControl();
            this.BOTTOM4 = new QMVnSoft.Controls.MainButtonControl();
            this.BANNER2 = new System.Windows.Forms.Button();
            this.BANNER4 = new System.Windows.Forms.Button();
            this.BANNER3 = new System.Windows.Forms.Button();
            this.BANNER1 = new System.Windows.Forms.Button();
            this.MODUL01 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL08 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL07 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL06 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL05 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL04 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL03 = new QMVnSoft.Controls.MainButtonControl();
            this.MODUL02 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE08 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE04 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE03 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE05 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE02 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE06 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE01 = new QMVnSoft.Controls.MainButtonControl();
            this.INVOICE07 = new QMVnSoft.Controls.MainButtonControl();
            this.lstReports = new System.Windows.Forms.ListView();
            this.Column1 = new System.Windows.Forms.ColumnHeader();
            this.TipControl = new System.Windows.Forms.ToolTip(this.components);
            this.MainMenu.SuspendLayout();
            this.MainToolBar.SuspendLayout();
            this.MainScreenBox.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.BANNERPicture)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LOGOPicture)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RIGHTPicture)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.BOTTOMPicture)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LEFTPicture)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.TOPPicture)).BeginInit();
            this.SuspendLayout();
            // 
            // MainMenu
            // 
            this.MainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SystemBarItem,
            this.ListBarItem,
            this.ReportBarItem,
            this.SupportItem});
            this.MainMenu.Location = new System.Drawing.Point(0, 0);
            this.MainMenu.Name = "MainMenu";
            this.MainMenu.Size = new System.Drawing.Size(794, 24);
            this.MainMenu.TabIndex = 0;
            this.MainMenu.Text = "MainMenu";
            // 
            // SystemBarItem
            // 
            this.SystemBarItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.ClosePadItem,
            this.LineItem001,
            this.MemvarsItem,
            this.InvoiceItem,
            this.SearchParaItem,
            this.UserManagerItem,
            this.LineItem002,
            this.CompanySelectItem,
            this.LockDataItem,
            this.LineItem003,
            this.BackupDataItem,
            this.RestoreDataItem,
            this.LineItem004,
            this.InvoiceHistoryItem,
            this.toolStripSeparator5,
            this.CheckDataItem});
            this.SystemBarItem.MenuItemNumber = ((long)(0));
            this.SystemBarItem.Name = "SystemBarItem";
            this.SystemBarItem.Size = new System.Drawing.Size(69, 20);
            this.SystemBarItem.Text = "&Hệ thống";
            // 
            // ClosePadItem
            // 
            this.ClosePadItem.MenuItemNumber = ((long)(0));
            this.ClosePadItem.Name = "ClosePadItem";
            this.ClosePadItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.ClosePadItem.Size = new System.Drawing.Size(244, 22);
            this.ClosePadItem.Text = "&0. Kết thúc chương trình";
            this.ClosePadItem.Click += new System.EventHandler(this.ClosePadItem_Click);
            // 
            // LineItem001
            // 
            this.LineItem001.Name = "LineItem001";
            this.LineItem001.Size = new System.Drawing.Size(241, 6);
            // 
            // MemvarsItem
            // 
            this.MemvarsItem.MenuItemNumber = ((long)(11));
            this.MemvarsItem.Name = "MemvarsItem";
            this.MemvarsItem.Size = new System.Drawing.Size(244, 22);
            this.MemvarsItem.Text = "&1. Khai báo tham số hệ thống";
            this.MemvarsItem.Click += new System.EventHandler(this.MemvarsItem_Click);
            // 
            // InvoiceItem
            // 
            this.InvoiceItem.MenuItemNumber = ((long)(16));
            this.InvoiceItem.Name = "InvoiceItem";
            this.InvoiceItem.Size = new System.Drawing.Size(244, 22);
            this.InvoiceItem.Text = "&2. Khai báo tham số chứng từ";
            this.InvoiceItem.Click += new System.EventHandler(this.InvoiceItem_Click);
            // 
            // SearchParaItem
            // 
            this.SearchParaItem.MenuItemNumber = ((long)(21));
            this.SearchParaItem.Name = "SearchParaItem";
            this.SearchParaItem.Size = new System.Drawing.Size(244, 22);
            this.SearchParaItem.Text = "&3. Định nghĩa tham số tìm kiếm";
            this.SearchParaItem.Click += new System.EventHandler(this.SearchParaItem_Click);
            // 
            // UserManagerItem
            // 
            this.UserManagerItem.MenuItemNumber = ((long)(26));
            this.UserManagerItem.Name = "UserManagerItem";
            this.UserManagerItem.Size = new System.Drawing.Size(244, 22);
            this.UserManagerItem.Text = "&4. Quản lý người sử dụng";
            this.UserManagerItem.Click += new System.EventHandler(this.UserManagerItem_Click);
            // 
            // LineItem002
            // 
            this.LineItem002.Name = "LineItem002";
            this.LineItem002.Size = new System.Drawing.Size(241, 6);
            // 
            // CompanySelectItem
            // 
            this.CompanySelectItem.MenuItemNumber = ((long)(36));
            this.CompanySelectItem.Name = "CompanySelectItem";
            this.CompanySelectItem.Size = new System.Drawing.Size(244, 22);
            this.CompanySelectItem.Text = "&5. Chọn đơn vị cơ sở";
            this.CompanySelectItem.Click += new System.EventHandler(this.CompanySelectItem_Click);
            // 
            // LockDataItem
            // 
            this.LockDataItem.MenuItemNumber = ((long)(41));
            this.LockDataItem.Name = "LockDataItem";
            this.LockDataItem.Size = new System.Drawing.Size(244, 22);
            this.LockDataItem.Text = "&6. Khóa dữ liệu";
            this.LockDataItem.Click += new System.EventHandler(this.LockDataItem_Click);
            // 
            // LineItem003
            // 
            this.LineItem003.Name = "LineItem003";
            this.LineItem003.Size = new System.Drawing.Size(241, 6);
            // 
            // BackupDataItem
            // 
            this.BackupDataItem.MenuItemNumber = ((long)(46));
            this.BackupDataItem.Name = "BackupDataItem";
            this.BackupDataItem.Size = new System.Drawing.Size(244, 22);
            this.BackupDataItem.Text = "&7. Sao lưu dữ liệu";
            this.BackupDataItem.Click += new System.EventHandler(this.BackupDataItem_Click);
            // 
            // RestoreDataItem
            // 
            this.RestoreDataItem.MenuItemNumber = ((long)(51));
            this.RestoreDataItem.Name = "RestoreDataItem";
            this.RestoreDataItem.Size = new System.Drawing.Size(244, 22);
            this.RestoreDataItem.Text = "&8. Phục hồi dữ liệu";
            this.RestoreDataItem.Click += new System.EventHandler(this.RestoreDataItem_Click);
            // 
            // LineItem004
            // 
            this.LineItem004.Name = "LineItem004";
            this.LineItem004.Size = new System.Drawing.Size(241, 6);
            // 
            // InvoiceHistoryItem
            // 
            this.InvoiceHistoryItem.MenuItemNumber = ((long)(58));
            this.InvoiceHistoryItem.Name = "InvoiceHistoryItem";
            this.InvoiceHistoryItem.Size = new System.Drawing.Size(244, 22);
            this.InvoiceHistoryItem.Text = "&9. Lịch sử chứng từ";
            this.InvoiceHistoryItem.Click += new System.EventHandler(this.InvoiceHistoryItem_Click);
            // 
            // toolStripSeparator5
            // 
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(241, 6);
            // 
            // CheckDataItem
            // 
            this.CheckDataItem.Name = "CheckDataItem";
            this.CheckDataItem.Size = new System.Drawing.Size(244, 22);
            this.CheckDataItem.Text = "&a. Kiểm tra sai sót dữ liệu";
            this.CheckDataItem.Click += new System.EventHandler(this.CheckDataItem_Click);
            // 
            // ListBarItem
            // 
            this.ListBarItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.ListAccountItem,
            this.ListCurrencyItem,
            this.LineItem007,
            this.ListCustGroupItem,
            this.ListCustomerItem,
            this.ListContractItem,
            this.LineItem008,
            this.ListDepartItem,
            this.LineItem009,
            this.ListElementItem,
            this.ListNormGroupItem,
            this.ListCategoryItem,
            this.ListProductItem,
            this.LineItem010,
            this.ListTypeItem,
            this.ListStockItem,
            this.ListItemGroupItem,
            this.ListItemItem,
            this.LineItem016,
            this.ListFixedAssetGroupItem,
            this.ListCapitalItem,
            this.ListPurposeItem,
            this.ListReasonItem});
            this.ListBarItem.MenuItemNumber = ((long)(0));
            this.ListBarItem.Name = "ListBarItem";
            this.ListBarItem.Size = new System.Drawing.Size(74, 20);
            this.ListBarItem.Text = "&Danh mục";
            // 
            // ListAccountItem
            // 
            this.ListAccountItem.MenuItemNumber = ((long)(71));
            this.ListAccountItem.Name = "ListAccountItem";
            this.ListAccountItem.Size = new System.Drawing.Size(269, 22);
            this.ListAccountItem.Text = "&1. Danh mục tài khoản";
            this.ListAccountItem.Click += new System.EventHandler(this.ListAccountItem_Click);
            // 
            // ListCurrencyItem
            // 
            this.ListCurrencyItem.MenuItemNumber = ((long)(76));
            this.ListCurrencyItem.Name = "ListCurrencyItem";
            this.ListCurrencyItem.Size = new System.Drawing.Size(269, 22);
            this.ListCurrencyItem.Text = "&2. Danh mục tiền tệ";
            this.ListCurrencyItem.Click += new System.EventHandler(this.ListCurrencyItem_Click);
            // 
            // LineItem007
            // 
            this.LineItem007.Name = "LineItem007";
            this.LineItem007.Size = new System.Drawing.Size(266, 6);
            // 
            // ListCustGroupItem
            // 
            this.ListCustGroupItem.MenuItemNumber = ((long)(86));
            this.ListCustGroupItem.Name = "ListCustGroupItem";
            this.ListCustGroupItem.Size = new System.Drawing.Size(269, 22);
            this.ListCustGroupItem.Text = "&3. Danh mục nhóm đối tượng";
            this.ListCustGroupItem.Click += new System.EventHandler(this.ListCustGroupItem_Click);
            // 
            // ListCustomerItem
            // 
            this.ListCustomerItem.MenuItemNumber = ((long)(91));
            this.ListCustomerItem.Name = "ListCustomerItem";
            this.ListCustomerItem.Size = new System.Drawing.Size(269, 22);
            this.ListCustomerItem.Text = "&4. Danh mục đối tượng";
            this.ListCustomerItem.Click += new System.EventHandler(this.ListCustomerItem_Click);
            // 
            // ListContractItem
            // 
            this.ListContractItem.MenuItemNumber = ((long)(96));
            this.ListContractItem.Name = "ListContractItem";
            this.ListContractItem.Size = new System.Drawing.Size(269, 22);
            this.ListContractItem.Text = "&5. Danh mục hợp đồng";
            this.ListContractItem.Click += new System.EventHandler(this.ListContractItem_Click);
            // 
            // LineItem008
            // 
            this.LineItem008.Name = "LineItem008";
            this.LineItem008.Size = new System.Drawing.Size(266, 6);
            // 
            // ListDepartItem
            // 
            this.ListDepartItem.MenuItemNumber = ((long)(101));
            this.ListDepartItem.Name = "ListDepartItem";
            this.ListDepartItem.Size = new System.Drawing.Size(269, 22);
            this.ListDepartItem.Text = "&6. Danh mục bộ phận";
            this.ListDepartItem.Click += new System.EventHandler(this.ListDepartItem_Click);
            // 
            // LineItem009
            // 
            this.LineItem009.Name = "LineItem009";
            this.LineItem009.Size = new System.Drawing.Size(266, 6);
            // 
            // ListElementItem
            // 
            this.ListElementItem.MenuItemNumber = ((long)(106));
            this.ListElementItem.Name = "ListElementItem";
            this.ListElementItem.Size = new System.Drawing.Size(269, 22);
            this.ListElementItem.Text = "&7. Danh mục yếu tố chi phí";
            this.ListElementItem.Click += new System.EventHandler(this.ListElementItem_Click);
            // 
            // ListNormGroupItem
            // 
            this.ListNormGroupItem.MenuItemNumber = ((long)(111));
            this.ListNormGroupItem.Name = "ListNormGroupItem";
            this.ListNormGroupItem.Size = new System.Drawing.Size(269, 22);
            this.ListNormGroupItem.Text = "&8. Danh mục nhóm định mức";
            this.ListNormGroupItem.Click += new System.EventHandler(this.ListNormGroupItem_Click);
            // 
            // ListCategoryItem
            // 
            this.ListCategoryItem.MenuItemNumber = ((long)(116));
            this.ListCategoryItem.Name = "ListCategoryItem";
            this.ListCategoryItem.Size = new System.Drawing.Size(269, 22);
            this.ListCategoryItem.Text = "&9. Danh mục khoản mục phí";
            this.ListCategoryItem.Click += new System.EventHandler(this.ListCategoryItem_Click);
            // 
            // ListProductItem
            // 
            this.ListProductItem.MenuItemNumber = ((long)(121));
            this.ListProductItem.Name = "ListProductItem";
            this.ListProductItem.Size = new System.Drawing.Size(269, 22);
            this.ListProductItem.Text = "&a. Danh mục sản phẩm, công trình";
            this.ListProductItem.Click += new System.EventHandler(this.ListProductItem_Click);
            // 
            // LineItem010
            // 
            this.LineItem010.Name = "LineItem010";
            this.LineItem010.Size = new System.Drawing.Size(266, 6);
            // 
            // ListTypeItem
            // 
            this.ListTypeItem.MenuItemNumber = ((long)(126));
            this.ListTypeItem.Name = "ListTypeItem";
            this.ListTypeItem.Size = new System.Drawing.Size(269, 22);
            this.ListTypeItem.Text = "&b. Danh mục dạng nhập xuất";
            this.ListTypeItem.Click += new System.EventHandler(this.ListTypeItem_Click);
            // 
            // ListStockItem
            // 
            this.ListStockItem.MenuItemNumber = ((long)(131));
            this.ListStockItem.Name = "ListStockItem";
            this.ListStockItem.Size = new System.Drawing.Size(269, 22);
            this.ListStockItem.Text = "&c. Danh mục kho hàng";
            this.ListStockItem.Click += new System.EventHandler(this.ListStockItem_Click);
            // 
            // ListItemGroupItem
            // 
            this.ListItemGroupItem.MenuItemNumber = ((long)(136));
            this.ListItemGroupItem.Name = "ListItemGroupItem";
            this.ListItemGroupItem.Size = new System.Drawing.Size(269, 22);
            this.ListItemGroupItem.Text = "&d. Danh mục nhóm vật tư, hàng hoá";
            this.ListItemGroupItem.Click += new System.EventHandler(this.ListItemGroupItem_Click);
            // 
            // ListItemItem
            // 
            this.ListItemItem.MenuItemNumber = ((long)(141));
            this.ListItemItem.Name = "ListItemItem";
            this.ListItemItem.Size = new System.Drawing.Size(269, 22);
            this.ListItemItem.Text = "&e. Danh mục vật tư, hàng hoá";
            this.ListItemItem.Click += new System.EventHandler(this.ListItemItem_Click);
            // 
            // LineItem016
            // 
            this.LineItem016.Name = "LineItem016";
            this.LineItem016.Size = new System.Drawing.Size(266, 6);
            // 
            // ListFixedAssetGroupItem
            // 
            this.ListFixedAssetGroupItem.MenuItemNumber = ((long)(161));
            this.ListFixedAssetGroupItem.Name = "ListFixedAssetGroupItem";
            this.ListFixedAssetGroupItem.Size = new System.Drawing.Size(269, 22);
            this.ListFixedAssetGroupItem.Text = "&g. Danh mục nhóm tài sản";
            this.ListFixedAssetGroupItem.Click += new System.EventHandler(this.ListFixedAssetGroupItem_Click);
            // 
            // ListCapitalItem
            // 
            this.ListCapitalItem.MenuItemNumber = ((long)(146));
            this.ListCapitalItem.Name = "ListCapitalItem";
            this.ListCapitalItem.Size = new System.Drawing.Size(269, 22);
            this.ListCapitalItem.Text = "&h. Danh mục nguồn vốn";
            this.ListCapitalItem.Click += new System.EventHandler(this.ListCapitalItem_Click);
            // 
            // ListPurposeItem
            // 
            this.ListPurposeItem.MenuItemNumber = ((long)(156));
            this.ListPurposeItem.Name = "ListPurposeItem";
            this.ListPurposeItem.Size = new System.Drawing.Size(269, 22);
            this.ListPurposeItem.Text = "&k. Danh mục mục đích sử dụng";
            this.ListPurposeItem.Click += new System.EventHandler(this.ListPurposeItem_Click);
            // 
            // ListReasonItem
            // 
            this.ListReasonItem.MenuItemNumber = ((long)(151));
            this.ListReasonItem.Name = "ListReasonItem";
            this.ListReasonItem.Size = new System.Drawing.Size(269, 22);
            this.ListReasonItem.Text = "&m. Danh mục lý do tăng giảm tài sản";
            this.ListReasonItem.Click += new System.EventHandler(this.ListReasonItem_Click);
            // 
            // ReportBarItem
            // 
            this.ReportBarItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.ReportLedgerItem,
            this.ReportDebtItem,
            this.LineItem011,
            this.ReportItemItem,
            this.ReportConstructItem,
            this.ReportProductItem,
            this.LineItem012,
            this.ReportFixAssetItem,
            this.LineItem013,
            this.ReportTaxItem,
            this.ReportBalanceItem,
            this.LineItem014,
            this.ReportStockItem});
            this.ReportBarItem.MenuItemNumber = ((long)(0));
            this.ReportBarItem.Name = "ReportBarItem";
            this.ReportBarItem.Size = new System.Drawing.Size(61, 20);
            this.ReportBarItem.Text = "&Báo cáo";
            // 
            // ReportLedgerItem
            // 
            this.ReportLedgerItem.MenuItemNumber = ((long)(471));
            this.ReportLedgerItem.Name = "ReportLedgerItem";
            this.ReportLedgerItem.Size = new System.Drawing.Size(214, 22);
            this.ReportLedgerItem.Text = "&1. Sổ sách kế toán";
            this.ReportLedgerItem.Click += new System.EventHandler(this.ReportLedgerItem_Click);
            // 
            // ReportDebtItem
            // 
            this.ReportDebtItem.MenuItemNumber = ((long)(476));
            this.ReportDebtItem.Name = "ReportDebtItem";
            this.ReportDebtItem.Size = new System.Drawing.Size(214, 22);
            this.ReportDebtItem.Text = "&2. Báo cáo công nợ";
            this.ReportDebtItem.Click += new System.EventHandler(this.ReportDebtItem_Click);
            // 
            // LineItem011
            // 
            this.LineItem011.Name = "LineItem011";
            this.LineItem011.Size = new System.Drawing.Size(211, 6);
            // 
            // ReportItemItem
            // 
            this.ReportItemItem.MenuItemNumber = ((long)(491));
            this.ReportItemItem.Name = "ReportItemItem";
            this.ReportItemItem.Size = new System.Drawing.Size(214, 22);
            this.ReportItemItem.Text = "&3. Báo cáo vật tư hàng hoá";
            this.ReportItemItem.Click += new System.EventHandler(this.ReportItemItem_Click);
            // 
            // ReportConstructItem
            // 
            this.ReportConstructItem.MenuItemNumber = ((long)(481));
            this.ReportConstructItem.Name = "ReportConstructItem";
            this.ReportConstructItem.Size = new System.Drawing.Size(214, 22);
            this.ReportConstructItem.Text = "&4. Báo cáo công trình";
            this.ReportConstructItem.Click += new System.EventHandler(this.ReportConstructItem_Click);
            // 
            // ReportProductItem
            // 
            this.ReportProductItem.MenuItemNumber = ((long)(486));
            this.ReportProductItem.Name = "ReportProductItem";
            this.ReportProductItem.Size = new System.Drawing.Size(214, 22);
            this.ReportProductItem.Text = "&5. Báo cáo giá thành";
            this.ReportProductItem.Click += new System.EventHandler(this.ReportProductItem_Click);
            // 
            // LineItem012
            // 
            this.LineItem012.Name = "LineItem012";
            this.LineItem012.Size = new System.Drawing.Size(211, 6);
            // 
            // ReportFixAssetItem
            // 
            this.ReportFixAssetItem.MenuItemNumber = ((long)(496));
            this.ReportFixAssetItem.Name = "ReportFixAssetItem";
            this.ReportFixAssetItem.Size = new System.Drawing.Size(214, 22);
            this.ReportFixAssetItem.Text = "&6. Báo cáo tài sản, công cụ";
            this.ReportFixAssetItem.Click += new System.EventHandler(this.ReportFixAssetItem_Click);
            // 
            // LineItem013
            // 
            this.LineItem013.Name = "LineItem013";
            this.LineItem013.Size = new System.Drawing.Size(211, 6);
            // 
            // ReportTaxItem
            // 
            this.ReportTaxItem.MenuItemNumber = ((long)(501));
            this.ReportTaxItem.Name = "ReportTaxItem";
            this.ReportTaxItem.Size = new System.Drawing.Size(214, 22);
            this.ReportTaxItem.Text = "&7. Báo cáo thuế";
            this.ReportTaxItem.Click += new System.EventHandler(this.ReportTaxItem_Click);
            // 
            // ReportBalanceItem
            // 
            this.ReportBalanceItem.MenuItemNumber = ((long)(506));
            this.ReportBalanceItem.Name = "ReportBalanceItem";
            this.ReportBalanceItem.Size = new System.Drawing.Size(214, 22);
            this.ReportBalanceItem.Text = "&8. Báo cáo tài chính";
            this.ReportBalanceItem.Click += new System.EventHandler(this.ReportBalanceItem_Click);
            // 
            // LineItem014
            // 
            this.LineItem014.Name = "LineItem014";
            this.LineItem014.Size = new System.Drawing.Size(211, 6);
            // 
            // ReportStockItem
            // 
            this.ReportStockItem.MenuItemNumber = ((long)(511));
            this.ReportStockItem.Name = "ReportStockItem";
            this.ReportStockItem.Size = new System.Drawing.Size(214, 22);
            this.ReportStockItem.Text = "&9. Báo cáo kho hàng";
            this.ReportStockItem.Click += new System.EventHandler(this.ReportStockItem_Click);
            // 
            // SupportItem
            // 
            this.SupportItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.HelpItem,
            this.toolStripSeparator2,
            this.UpdateTaxCodeItem,
            this.toolStripSeparator1,
            this.ExportHTKKTItem,
            this.LineItem005,
            this.RegisterItem,
            this.toolStripSeparator3,
            this.SendDataItem,
            this.toolStripSeparator4,
            this.ReceivedDataItem,
            this.toolStripSeparator12,
            this.InstallFontItem});
            this.SupportItem.MenuItemNumber = ((long)(0));
            this.SupportItem.Name = "SupportItem";
            this.SupportItem.Size = new System.Drawing.Size(61, 20);
            this.SupportItem.Text = "&Tiện ích";
            // 
            // HelpItem
            // 
            this.HelpItem.MenuItemNumber = ((long)(0));
            this.HelpItem.Name = "HelpItem";
            this.HelpItem.Size = new System.Drawing.Size(287, 22);
            this.HelpItem.Text = "&1. Hướng dẫn sử dụng";
            this.HelpItem.Click += new System.EventHandler(this.HelpItem_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(284, 6);
            // 
            // UpdateTaxCodeItem
            // 
            this.UpdateTaxCodeItem.MenuItemNumber = ((long)(0));
            this.UpdateTaxCodeItem.Name = "UpdateTaxCodeItem";
            this.UpdateTaxCodeItem.Size = new System.Drawing.Size(287, 22);
            this.UpdateTaxCodeItem.Text = "&2. Cập nhật mã số thuế bỏ trốn";
            this.UpdateTaxCodeItem.Click += new System.EventHandler(this.UpdateTaxCodeItem_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(284, 6);
            // 
            // ExportHTKKTItem
            // 
            this.ExportHTKKTItem.MenuItemNumber = ((long)(56));
            this.ExportHTKKTItem.Name = "ExportHTKKTItem";
            this.ExportHTKKTItem.Size = new System.Drawing.Size(287, 22);
            this.ExportHTKKTItem.Text = "&3. Export dữ liệu sang phần mềm HTKKT";
            this.ExportHTKKTItem.Click += new System.EventHandler(this.ExportHTKKTItem_Click);
            // 
            // LineItem005
            // 
            this.LineItem005.Name = "LineItem005";
            this.LineItem005.Size = new System.Drawing.Size(284, 6);
            // 
            // RegisterItem
            // 
            this.RegisterItem.MenuItemNumber = ((long)(0));
            this.RegisterItem.Name = "RegisterItem";
            this.RegisterItem.Size = new System.Drawing.Size(287, 22);
            this.RegisterItem.Text = "&4. Đăng ký sử dụng";
            this.RegisterItem.Click += new System.EventHandler(this.RegisterItem_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(284, 6);
            // 
            // SendDataItem
            // 
            this.SendDataItem.Name = "SendDataItem";
            this.SendDataItem.Size = new System.Drawing.Size(287, 22);
            this.SendDataItem.Text = "&5. Xuất dữ liệu";
            this.SendDataItem.Click += new System.EventHandler(this.SendDataItem_Click);
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(284, 6);
            // 
            // ReceivedDataItem
            // 
            this.ReceivedDataItem.Name = "ReceivedDataItem";
            this.ReceivedDataItem.Size = new System.Drawing.Size(287, 22);
            this.ReceivedDataItem.Text = "&6. Nhận dữ liệu";
            this.ReceivedDataItem.Click += new System.EventHandler(this.ReceivedDataItem_Click);
            // 
            // toolStripSeparator12
            // 
            this.toolStripSeparator12.Name = "toolStripSeparator12";
            this.toolStripSeparator12.Size = new System.Drawing.Size(284, 6);
            // 
            // InstallFontItem
            // 
            this.InstallFontItem.MenuItemNumber = ((long)(0));
            this.InstallFontItem.Name = "InstallFontItem";
            this.InstallFontItem.Size = new System.Drawing.Size(287, 22);
            this.InstallFontItem.Text = "&5. Cài đặt phông chữ";
            this.InstallFontItem.Visible = false;
            this.InstallFontItem.Click += new System.EventHandler(this.InstallFontItem_Click);
            // 
            // MainToolBar
            // 
            this.MainToolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CBoxYear});
            this.MainToolBar.Location = new System.Drawing.Point(0, 24);
            this.MainToolBar.Name = "MainToolBar";
            this.MainToolBar.Size = new System.Drawing.Size(794, 25);
            this.MainToolBar.TabIndex = 1;
            this.MainToolBar.Text = "MainToolBar";
            // 
            // CBoxYear
            // 
            this.CBoxYear.AutoSize = false;
            this.CBoxYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.CBoxYear.DropDownWidth = 50;
            this.CBoxYear.Items.AddRange(new object[] {
            "2009",
            "2008"});
            this.CBoxYear.Name = "CBoxYear";
            this.CBoxYear.Size = new System.Drawing.Size(50, 23);
            this.CBoxYear.TextChanged += new System.EventHandler(this.CBoxYear_TextChanged);
            // 
            // MainScreenBox
            // 
            this.MainScreenBox.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.MainScreenBox.BackColor = System.Drawing.Color.Transparent;
            this.MainScreenBox.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_MAIN;
            this.MainScreenBox.Controls.Add(this.lblBackInvoice);
            this.MainScreenBox.Controls.Add(this.BANNERPicture);
            this.MainScreenBox.Controls.Add(this.LOGOPicture);
            this.MainScreenBox.Controls.Add(this.LINEPicture3);
            this.MainScreenBox.Controls.Add(this.LINEPicture2);
            this.MainScreenBox.Controls.Add(this.LINEPicture4);
            this.MainScreenBox.Controls.Add(this.LINEPicture1);
            this.MainScreenBox.Controls.Add(this.RIGHTPicture);
            this.MainScreenBox.Controls.Add(this.BOTTOMPicture);
            this.MainScreenBox.Controls.Add(this.LEFTPicture);
            this.MainScreenBox.Controls.Add(this.TOPPicture);
            this.MainScreenBox.Controls.Add(this.BOTTOM5);
            this.MainScreenBox.Controls.Add(this.BOTTOM3);
            this.MainScreenBox.Controls.Add(this.BOTTOM2);
            this.MainScreenBox.Controls.Add(this.BOTTOM1);
            this.MainScreenBox.Controls.Add(this.BOTTOM4);
            this.MainScreenBox.Controls.Add(this.BANNER2);
            this.MainScreenBox.Controls.Add(this.BANNER4);
            this.MainScreenBox.Controls.Add(this.BANNER3);
            this.MainScreenBox.Controls.Add(this.BANNER1);
            this.MainScreenBox.Controls.Add(this.MODUL01);
            this.MainScreenBox.Controls.Add(this.MODUL08);
            this.MainScreenBox.Controls.Add(this.MODUL07);
            this.MainScreenBox.Controls.Add(this.MODUL06);
            this.MainScreenBox.Controls.Add(this.MODUL05);
            this.MainScreenBox.Controls.Add(this.MODUL04);
            this.MainScreenBox.Controls.Add(this.MODUL03);
            this.MainScreenBox.Controls.Add(this.MODUL02);
            this.MainScreenBox.Controls.Add(this.INVOICE08);
            this.MainScreenBox.Controls.Add(this.INVOICE04);
            this.MainScreenBox.Controls.Add(this.INVOICE03);
            this.MainScreenBox.Controls.Add(this.INVOICE05);
            this.MainScreenBox.Controls.Add(this.INVOICE02);
            this.MainScreenBox.Controls.Add(this.INVOICE06);
            this.MainScreenBox.Controls.Add(this.INVOICE01);
            this.MainScreenBox.Controls.Add(this.INVOICE07);
            this.MainScreenBox.Controls.Add(this.lstReports);
            this.MainScreenBox.Location = new System.Drawing.Point(0, 49);
            this.MainScreenBox.Name = "MainScreenBox";
            this.MainScreenBox.Size = new System.Drawing.Size(794, 483);
            this.MainScreenBox.TabIndex = 4;
            // 
            // lblBackInvoice
            // 
            this.lblBackInvoice.BackColor = System.Drawing.Color.CornflowerBlue;
            this.lblBackInvoice.Location = new System.Drawing.Point(260, 359);
            this.lblBackInvoice.Name = "lblBackInvoice";
            this.lblBackInvoice.Size = new System.Drawing.Size(235, 1);
            this.lblBackInvoice.TabIndex = 37;
            // 
            // BANNERPicture
            // 
            this.BANNERPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.BANNER;
            this.BANNERPicture.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BANNERPicture.Location = new System.Drawing.Point(261, 3);
            this.BANNERPicture.Name = "BANNERPicture";
            this.BANNERPicture.Size = new System.Drawing.Size(530, 103);
            this.BANNERPicture.TabIndex = 6;
            this.BANNERPicture.TabStop = false;
            // 
            // LOGOPicture
            // 
            this.LOGOPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.LOGO;
            this.LOGOPicture.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.LOGOPicture.Location = new System.Drawing.Point(3, 3);
            this.LOGOPicture.Name = "LOGOPicture";
            this.LOGOPicture.Size = new System.Drawing.Size(256, 103);
            this.LOGOPicture.TabIndex = 6;
            this.LOGOPicture.TabStop = false;
            this.LOGOPicture.DoubleClick += new System.EventHandler(this.LOGOPicture_DoubleClick);
            // 
            // LINEPicture3
            // 
            this.LINEPicture3.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_RPIC;
            this.LINEPicture3.Location = new System.Drawing.Point(494, 108);
            this.LINEPicture3.Name = "LINEPicture3";
            this.LINEPicture3.Size = new System.Drawing.Size(2, 325);
            this.LINEPicture3.TabIndex = 5;
            this.LINEPicture3.TabStop = false;
            // 
            // LINEPicture2
            // 
            this.LINEPicture2.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_RPIC;
            this.LINEPicture2.Location = new System.Drawing.Point(259, 3);
            this.LINEPicture2.Name = "LINEPicture2";
            this.LINEPicture2.Size = new System.Drawing.Size(2, 477);
            this.LINEPicture2.TabIndex = 5;
            this.LINEPicture2.TabStop = false;
            // 
            // LINEPicture4
            // 
            this.LINEPicture4.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_PIC;
            this.LINEPicture4.Location = new System.Drawing.Point(259, 433);
            this.LINEPicture4.Name = "LINEPicture4";
            this.LINEPicture4.Size = new System.Drawing.Size(533, 2);
            this.LINEPicture4.TabIndex = 4;
            this.LINEPicture4.TabStop = false;
            // 
            // LINEPicture1
            // 
            this.LINEPicture1.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_PIC;
            this.LINEPicture1.Location = new System.Drawing.Point(3, 106);
            this.LINEPicture1.Name = "LINEPicture1";
            this.LINEPicture1.Size = new System.Drawing.Size(788, 2);
            this.LINEPicture1.TabIndex = 4;
            this.LINEPicture1.TabStop = false;
            // 
            // RIGHTPicture
            // 
            this.RIGHTPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_RPIC;
            this.RIGHTPicture.Dock = System.Windows.Forms.DockStyle.Right;
            this.RIGHTPicture.Location = new System.Drawing.Point(791, 3);
            this.RIGHTPicture.Name = "RIGHTPicture";
            this.RIGHTPicture.Size = new System.Drawing.Size(3, 477);
            this.RIGHTPicture.TabIndex = 3;
            this.RIGHTPicture.TabStop = false;
            // 
            // BOTTOMPicture
            // 
            this.BOTTOMPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_PIC;
            this.BOTTOMPicture.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.BOTTOMPicture.Image = global::QMVnSoft.Properties.Resources.BG_PIC;
            this.BOTTOMPicture.Location = new System.Drawing.Point(3, 480);
            this.BOTTOMPicture.Name = "BOTTOMPicture";
            this.BOTTOMPicture.Size = new System.Drawing.Size(791, 3);
            this.BOTTOMPicture.TabIndex = 2;
            this.BOTTOMPicture.TabStop = false;
            // 
            // LEFTPicture
            // 
            this.LEFTPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_RPIC;
            this.LEFTPicture.Dock = System.Windows.Forms.DockStyle.Left;
            this.LEFTPicture.Location = new System.Drawing.Point(0, 3);
            this.LEFTPicture.Name = "LEFTPicture";
            this.LEFTPicture.Size = new System.Drawing.Size(3, 480);
            this.LEFTPicture.TabIndex = 1;
            this.LEFTPicture.TabStop = false;
            // 
            // TOPPicture
            // 
            this.TOPPicture.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_PIC;
            this.TOPPicture.Dock = System.Windows.Forms.DockStyle.Top;
            this.TOPPicture.Location = new System.Drawing.Point(0, 0);
            this.TOPPicture.Name = "TOPPicture";
            this.TOPPicture.Size = new System.Drawing.Size(794, 3);
            this.TOPPicture.TabIndex = 0;
            this.TOPPicture.TabStop = false;
            // 
            // BOTTOM5
            // 
            this.BOTTOM5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM5.BackgroundImage")));
            this.BOTTOM5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BOTTOM5.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BOTTOM5.FlatAppearance.BorderSize = 0;
            this.BOTTOM5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BOTTOM5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BOTTOM5.ForeColor = System.Drawing.Color.White;
            this.BOTTOM5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.BOTTOM5.LastButton = null;
            this.BOTTOM5.LastModulButton = null;
            this.BOTTOM5.Location = new System.Drawing.Point(685, 436);
            this.BOTTOM5.MenuItemNumber = ((long)(211));
            this.BOTTOM5.Name = "BOTTOM5";
            this.BOTTOM5.Size = new System.Drawing.Size(105, 43);
            this.BOTTOM5.TabIndex = 26;
            this.BOTTOM5.TabStop = false;
            this.BOTTOM5.Text = "Sao lưu dữ liệu";
            this.BOTTOM5.UserActiveControl = null;
            this.BOTTOM5.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM5.UserFocusedandMoveGroundImage")));
            this.BOTTOM5.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM5.UserFocusedImage")));
            this.BOTTOM5.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM5.UserMouseLeaveImage")));
            this.BOTTOM5.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM5.UserMouseMoveImage")));
            this.BOTTOM5.UseVisualStyleBackColor = true;
            this.BOTTOM5.Click += new System.EventHandler(this.BOTTOM5_Click);
            // 
            // BOTTOM3
            // 
            this.BOTTOM3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM3.BackgroundImage")));
            this.BOTTOM3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BOTTOM3.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BOTTOM3.FlatAppearance.BorderSize = 0;
            this.BOTTOM3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BOTTOM3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BOTTOM3.ForeColor = System.Drawing.Color.White;
            this.BOTTOM3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.BOTTOM3.LastButton = null;
            this.BOTTOM3.LastModulButton = null;
            this.BOTTOM3.Location = new System.Drawing.Point(473, 436);
            this.BOTTOM3.MenuItemNumber = ((long)(211));
            this.BOTTOM3.Name = "BOTTOM3";
            this.BOTTOM3.Size = new System.Drawing.Size(105, 43);
            this.BOTTOM3.TabIndex = 24;
            this.BOTTOM3.TabStop = false;
            this.BOTTOM3.Text = "Bút toán\r\nkhoá sổ";
            this.BOTTOM3.UserActiveControl = null;
            this.BOTTOM3.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM3.UserFocusedandMoveGroundImage")));
            this.BOTTOM3.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM3.UserFocusedImage")));
            this.BOTTOM3.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM3.UserMouseLeaveImage")));
            this.BOTTOM3.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM3.UserMouseMoveImage")));
            this.BOTTOM3.UseVisualStyleBackColor = true;
            this.BOTTOM3.Click += new System.EventHandler(this.BOTTOM3_Click);
            // 
            // BOTTOM2
            // 
            this.BOTTOM2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM2.BackgroundImage")));
            this.BOTTOM2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BOTTOM2.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BOTTOM2.FlatAppearance.BorderSize = 0;
            this.BOTTOM2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BOTTOM2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BOTTOM2.ForeColor = System.Drawing.Color.White;
            this.BOTTOM2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.BOTTOM2.LastButton = null;
            this.BOTTOM2.LastModulButton = null;
            this.BOTTOM2.Location = new System.Drawing.Point(367, 436);
            this.BOTTOM2.MenuItemNumber = ((long)(436));
            this.BOTTOM2.Name = "BOTTOM2";
            this.BOTTOM2.Size = new System.Drawing.Size(105, 43);
            this.BOTTOM2.TabIndex = 23;
            this.BOTTOM2.TabStop = false;
            this.BOTTOM2.Text = "Tính\r\nkhấu hao";
            this.BOTTOM2.UserActiveControl = null;
            this.BOTTOM2.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM2.UserFocusedandMoveGroundImage")));
            this.BOTTOM2.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM2.UserFocusedImage")));
            this.BOTTOM2.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM2.UserMouseLeaveImage")));
            this.BOTTOM2.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM2.UserMouseMoveImage")));
            this.BOTTOM2.UseVisualStyleBackColor = true;
            this.BOTTOM2.Click += new System.EventHandler(this.BOTTOM2_Click);
            // 
            // BOTTOM1
            // 
            this.BOTTOM1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM1.BackgroundImage")));
            this.BOTTOM1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BOTTOM1.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BOTTOM1.FlatAppearance.BorderSize = 0;
            this.BOTTOM1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BOTTOM1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BOTTOM1.ForeColor = System.Drawing.Color.White;
            this.BOTTOM1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.BOTTOM1.LastButton = null;
            this.BOTTOM1.LastModulButton = null;
            this.BOTTOM1.Location = new System.Drawing.Point(262, 436);
            this.BOTTOM1.MenuItemNumber = ((long)(206));
            this.BOTTOM1.Name = "BOTTOM1";
            this.BOTTOM1.Size = new System.Drawing.Size(104, 43);
            this.BOTTOM1.TabIndex = 22;
            this.BOTTOM1.TabStop = false;
            this.BOTTOM1.Text = "Tính\r\ngiá vốn";
            this.BOTTOM1.UserActiveControl = null;
            this.BOTTOM1.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM1.UserFocusedandMoveGroundImage")));
            this.BOTTOM1.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM1.UserFocusedImage")));
            this.BOTTOM1.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM1.UserMouseLeaveImage")));
            this.BOTTOM1.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM1.UserMouseMoveImage")));
            this.BOTTOM1.UseVisualStyleBackColor = true;
            this.BOTTOM1.Click += new System.EventHandler(this.BOTTOM1_Click);
            // 
            // BOTTOM4
            // 
            this.BOTTOM4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM4.BackgroundImage")));
            this.BOTTOM4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BOTTOM4.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BOTTOM4.FlatAppearance.BorderSize = 0;
            this.BOTTOM4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BOTTOM4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BOTTOM4.ForeColor = System.Drawing.Color.White;
            this.BOTTOM4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.BOTTOM4.LastButton = null;
            this.BOTTOM4.LastModulButton = null;
            this.BOTTOM4.Location = new System.Drawing.Point(579, 436);
            this.BOTTOM4.MenuItemNumber = ((long)(206));
            this.BOTTOM4.Name = "BOTTOM4";
            this.BOTTOM4.Size = new System.Drawing.Size(105, 43);
            this.BOTTOM4.TabIndex = 25;
            this.BOTTOM4.TabStop = false;
            this.BOTTOM4.Text = "Truyền nhận dữ liệu";
            this.BOTTOM4.UserActiveControl = null;
            this.BOTTOM4.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM4.UserFocusedandMoveGroundImage")));
            this.BOTTOM4.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM4.UserFocusedImage")));
            this.BOTTOM4.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM4.UserMouseLeaveImage")));
            this.BOTTOM4.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("BOTTOM4.UserMouseMoveImage")));
            this.BOTTOM4.UseVisualStyleBackColor = true;
            this.BOTTOM4.Click += new System.EventHandler(this.BOTTOM4_Click);
            // 
            // BANNER2
            // 
            this.BANNER2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BANNER2.BackgroundImage")));
            this.BANNER2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BANNER2.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BANNER2.FlatAppearance.BorderColor = System.Drawing.Color.White;
            this.BANNER2.FlatAppearance.BorderSize = 0;
            this.BANNER2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BANNER2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BANNER2.ForeColor = System.Drawing.Color.Transparent;
            this.BANNER2.Location = new System.Drawing.Point(169, 109);
            this.BANNER2.Name = "BANNER2";
            this.BANNER2.Size = new System.Drawing.Size(89, 27);
            this.BANNER2.TabIndex = 1;
            this.BANNER2.TabStop = false;
            this.BANNER2.Text = "SỐ DƯ ĐẦU";
            this.BANNER2.UseVisualStyleBackColor = false;
            this.BANNER2.Click += new System.EventHandler(this.BANNER2_Click);
            // 
            // BANNER4
            // 
            this.BANNER4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BANNER4.BackgroundImage")));
            this.BANNER4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BANNER4.FlatAppearance.BorderSize = 0;
            this.BANNER4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BANNER4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BANNER4.ForeColor = System.Drawing.Color.Transparent;
            this.BANNER4.Location = new System.Drawing.Point(496, 109);
            this.BANNER4.Name = "BANNER4";
            this.BANNER4.Size = new System.Drawing.Size(294, 27);
            this.BANNER4.TabIndex = 3;
            this.BANNER4.TabStop = false;
            this.BANNER4.Text = "BÁO CÁO";
            this.BANNER4.UseVisualStyleBackColor = false;
            // 
            // BANNER3
            // 
            this.BANNER3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BANNER3.BackgroundImage")));
            this.BANNER3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BANNER3.FlatAppearance.BorderSize = 0;
            this.BANNER3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BANNER3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BANNER3.ForeColor = System.Drawing.Color.Transparent;
            this.BANNER3.Location = new System.Drawing.Point(261, 109);
            this.BANNER3.Name = "BANNER3";
            this.BANNER3.Size = new System.Drawing.Size(232, 27);
            this.BANNER3.TabIndex = 2;
            this.BANNER3.TabStop = false;
            this.BANNER3.Text = "CHỨNG TỪ";
            this.BANNER3.UseVisualStyleBackColor = false;
            // 
            // BANNER1
            // 
            this.BANNER1.BackgroundImage = global::QMVnSoft.Properties.Resources.BG_FOCUSED;
            this.BANNER1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.BANNER1.Cursor = System.Windows.Forms.Cursors.Hand;
            this.BANNER1.FlatAppearance.BorderColor = System.Drawing.Color.White;
            this.BANNER1.FlatAppearance.BorderSize = 0;
            this.BANNER1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BANNER1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BANNER1.ForeColor = System.Drawing.Color.Transparent;
            this.BANNER1.Location = new System.Drawing.Point(3, 109);
            this.BANNER1.Name = "BANNER1";
            this.BANNER1.Size = new System.Drawing.Size(166, 27);
            this.BANNER1.TabIndex = 0;
            this.BANNER1.TabStop = false;
            this.BANNER1.Text = "NGHIỆP VỤ";
            this.BANNER1.UseVisualStyleBackColor = false;
            this.BANNER1.Click += new System.EventHandler(this.BANNER1_Click);
            // 
            // MODUL01
            // 
            this.MODUL01.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL01.BackgroundImage")));
            this.MODUL01.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL01.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL01.FlatAppearance.BorderSize = 0;
            this.MODUL01.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL01.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL01.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL01.LastButton = null;
            this.MODUL01.LastModulButton = null;
            this.MODUL01.Location = new System.Drawing.Point(1, 137);
            this.MODUL01.MenuItemNumber = ((long)(0));
            this.MODUL01.Name = "MODUL01";
            this.MODUL01.Size = new System.Drawing.Size(260, 43);
            this.MODUL01.TabIndex = 5;
            this.MODUL01.TabStop = false;
            this.MODUL01.Text = "Kế toán tiền mặt, tiền gửi";
            this.MODUL01.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL01.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL01.UserActiveControl = null;
            this.MODUL01.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL01.UserFocusedandMoveGroundImage")));
            this.MODUL01.UserFocusedImage = global::QMVnSoft.Properties.Resources.BUTTON_BG;
            this.MODUL01.UserModulButton = true;
            this.MODUL01.UserMouseLeaveImage = global::QMVnSoft.Properties.Resources.BUTTON_BG;
            this.MODUL01.UserMouseMoveImage = global::QMVnSoft.Properties.Resources.BUTTON;
            this.MODUL01.Click += new System.EventHandler(this.MODUL01_Click);
            // 
            // MODUL08
            // 
            this.MODUL08.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL08.BackgroundImage")));
            this.MODUL08.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL08.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL08.FlatAppearance.BorderSize = 0;
            this.MODUL08.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL08.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL08.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL08.LastButton = null;
            this.MODUL08.LastModulButton = null;
            this.MODUL08.Location = new System.Drawing.Point(1, 438);
            this.MODUL08.MenuItemNumber = ((long)(0));
            this.MODUL08.Name = "MODUL08";
            this.MODUL08.Size = new System.Drawing.Size(260, 43);
            this.MODUL08.TabIndex = 12;
            this.MODUL08.TabStop = false;
            this.MODUL08.Text = "Quản trị hệ thống";
            this.MODUL08.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL08.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL08.UserActiveControl = null;
            this.MODUL08.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL08.UserFocusedandMoveGroundImage")));
            this.MODUL08.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL08.UserFocusedImage")));
            this.MODUL08.UserModulButton = true;
            this.MODUL08.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL08.UserMouseLeaveImage")));
            this.MODUL08.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL08.UserMouseMoveImage")));
            this.MODUL08.UseVisualStyleBackColor = false;
            this.MODUL08.Click += new System.EventHandler(this.MODUL08_Click);
            // 
            // MODUL07
            // 
            this.MODUL07.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL07.BackgroundImage")));
            this.MODUL07.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL07.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL07.FlatAppearance.BorderSize = 0;
            this.MODUL07.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL07.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL07.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL07.LastButton = null;
            this.MODUL07.LastModulButton = null;
            this.MODUL07.Location = new System.Drawing.Point(1, 395);
            this.MODUL07.MenuItemNumber = ((long)(0));
            this.MODUL07.Name = "MODUL07";
            this.MODUL07.Size = new System.Drawing.Size(260, 43);
            this.MODUL07.TabIndex = 11;
            this.MODUL07.TabStop = false;
            this.MODUL07.Text = "Quản lý kho";
            this.MODUL07.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL07.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL07.UserActiveControl = null;
            this.MODUL07.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL07.UserFocusedandMoveGroundImage")));
            this.MODUL07.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL07.UserFocusedImage")));
            this.MODUL07.UserModulButton = true;
            this.MODUL07.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL07.UserMouseLeaveImage")));
            this.MODUL07.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL07.UserMouseMoveImage")));
            this.MODUL07.UseVisualStyleBackColor = false;
            this.MODUL07.Click += new System.EventHandler(this.MODUL07_Click);
            // 
            // MODUL06
            // 
            this.MODUL06.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL06.BackgroundImage")));
            this.MODUL06.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL06.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL06.FlatAppearance.BorderSize = 0;
            this.MODUL06.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL06.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL06.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL06.LastButton = null;
            this.MODUL06.LastModulButton = null;
            this.MODUL06.Location = new System.Drawing.Point(1, 352);
            this.MODUL06.MenuItemNumber = ((long)(0));
            this.MODUL06.Name = "MODUL06";
            this.MODUL06.Size = new System.Drawing.Size(260, 43);
            this.MODUL06.TabIndex = 10;
            this.MODUL06.TabStop = false;
            this.MODUL06.Text = "Kế toán tổng hợp";
            this.MODUL06.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL06.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL06.UserActiveControl = null;
            this.MODUL06.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL06.UserFocusedandMoveGroundImage")));
            this.MODUL06.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL06.UserFocusedImage")));
            this.MODUL06.UserModulButton = true;
            this.MODUL06.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL06.UserMouseLeaveImage")));
            this.MODUL06.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL06.UserMouseMoveImage")));
            this.MODUL06.UseVisualStyleBackColor = false;
            this.MODUL06.Click += new System.EventHandler(this.MODUL06_Click);
            // 
            // MODUL05
            // 
            this.MODUL05.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL05.BackgroundImage")));
            this.MODUL05.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL05.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL05.FlatAppearance.BorderSize = 0;
            this.MODUL05.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL05.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL05.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL05.LastButton = null;
            this.MODUL05.LastModulButton = null;
            this.MODUL05.Location = new System.Drawing.Point(1, 309);
            this.MODUL05.MenuItemNumber = ((long)(0));
            this.MODUL05.Name = "MODUL05";
            this.MODUL05.Size = new System.Drawing.Size(260, 43);
            this.MODUL05.TabIndex = 9;
            this.MODUL05.TabStop = false;
            this.MODUL05.Text = "Kế toán tài sản, công cụ, chi phí";
            this.MODUL05.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL05.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL05.UserActiveControl = null;
            this.MODUL05.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL05.UserFocusedandMoveGroundImage")));
            this.MODUL05.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL05.UserFocusedImage")));
            this.MODUL05.UserModulButton = true;
            this.MODUL05.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL05.UserMouseLeaveImage")));
            this.MODUL05.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL05.UserMouseMoveImage")));
            this.MODUL05.UseVisualStyleBackColor = false;
            this.MODUL05.Click += new System.EventHandler(this.MODUL05_Click);
            // 
            // MODUL04
            // 
            this.MODUL04.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL04.BackgroundImage")));
            this.MODUL04.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL04.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL04.FlatAppearance.BorderSize = 0;
            this.MODUL04.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL04.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL04.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL04.LastButton = null;
            this.MODUL04.LastModulButton = null;
            this.MODUL04.Location = new System.Drawing.Point(1, 266);
            this.MODUL04.MenuItemNumber = ((long)(0));
            this.MODUL04.Name = "MODUL04";
            this.MODUL04.Size = new System.Drawing.Size(260, 43);
            this.MODUL04.TabIndex = 8;
            this.MODUL04.TabStop = false;
            this.MODUL04.Text = "Kế toán sản xuất - giá thành";
            this.MODUL04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL04.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL04.UserActiveControl = null;
            this.MODUL04.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL04.UserFocusedandMoveGroundImage")));
            this.MODUL04.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL04.UserFocusedImage")));
            this.MODUL04.UserModulButton = true;
            this.MODUL04.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL04.UserMouseLeaveImage")));
            this.MODUL04.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL04.UserMouseMoveImage")));
            this.MODUL04.UseVisualStyleBackColor = false;
            this.MODUL04.Click += new System.EventHandler(this.MODUL04_Click);
            // 
            // MODUL03
            // 
            this.MODUL03.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL03.BackgroundImage")));
            this.MODUL03.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL03.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL03.FlatAppearance.BorderSize = 0;
            this.MODUL03.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL03.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL03.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL03.LastButton = null;
            this.MODUL03.LastModulButton = null;
            this.MODUL03.Location = new System.Drawing.Point(1, 223);
            this.MODUL03.MenuItemNumber = ((long)(0));
            this.MODUL03.Name = "MODUL03";
            this.MODUL03.Size = new System.Drawing.Size(260, 43);
            this.MODUL03.TabIndex = 7;
            this.MODUL03.TabStop = false;
            this.MODUL03.Text = "Kế toán công trình";
            this.MODUL03.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL03.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL03.UserActiveControl = null;
            this.MODUL03.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL03.UserFocusedandMoveGroundImage")));
            this.MODUL03.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL03.UserFocusedImage")));
            this.MODUL03.UserModulButton = true;
            this.MODUL03.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("MODUL03.UserMouseLeaveImage")));
            this.MODUL03.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("MODUL03.UserMouseMoveImage")));
            this.MODUL03.UseVisualStyleBackColor = false;
            this.MODUL03.Click += new System.EventHandler(this.MODUL03_Click);
            // 
            // MODUL02
            // 
            this.MODUL02.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL02.BackgroundImage")));
            this.MODUL02.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.MODUL02.Cursor = System.Windows.Forms.Cursors.Hand;
            this.MODUL02.FlatAppearance.BorderSize = 0;
            this.MODUL02.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MODUL02.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MODUL02.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL02.LastButton = null;
            this.MODUL02.LastModulButton = null;
            this.MODUL02.Location = new System.Drawing.Point(1, 180);
            this.MODUL02.MenuItemNumber = ((long)(0));
            this.MODUL02.Name = "MODUL02";
            this.MODUL02.Size = new System.Drawing.Size(260, 43);
            this.MODUL02.TabIndex = 6;
            this.MODUL02.TabStop = false;
            this.MODUL02.Text = "Kế toán vật tư, hàng hoá";
            this.MODUL02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.MODUL02.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.MODUL02.UserActiveControl = null;
            this.MODUL02.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("MODUL02.UserFocusedandMoveGroundImage")));
            this.MODUL02.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("MODUL02.UserFocusedImage")));
            this.MODUL02.UserModulButton = true;
            this.MODUL02.UserMouseLeaveImage = global::QMVnSoft.Properties.Resources.BUTTON_BG;
            this.MODUL02.UserMouseMoveImage = global::QMVnSoft.Properties.Resources.BUTTON;
            this.MODUL02.UseVisualStyleBackColor = false;
            this.MODUL02.Click += new System.EventHandler(this.MODUL02_Click);
            // 
            // INVOICE08
            // 
            this.INVOICE08.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE08.BackgroundImage")));
            this.INVOICE08.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE08.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE08.FlatAppearance.BorderSize = 0;
            this.INVOICE08.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE08.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE08.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE08.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE08.LastButton = null;
            this.INVOICE08.LastModulButton = null;
            this.INVOICE08.Location = new System.Drawing.Point(260, 396);
            this.INVOICE08.MenuItemNumber = ((long)(0));
            this.INVOICE08.Name = "INVOICE08";
            this.INVOICE08.Size = new System.Drawing.Size(235, 37);
            this.INVOICE08.TabIndex = 20;
            this.INVOICE08.TabStop = false;
            this.INVOICE08.Text = "Đăng ký công cụ, chi phí";
            this.INVOICE08.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE08.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE08.UserActiveControl = null;
            this.INVOICE08.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE08.UserFocusedandMoveGroundImage")));
            this.INVOICE08.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE08.UserFocusedImage")));
            this.INVOICE08.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE08.UserMouseLeaveImage")));
            this.INVOICE08.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE08.UserMouseMoveImage")));
            this.INVOICE08.UseVisualStyleBackColor = false;
            this.INVOICE08.Click += new System.EventHandler(this.INVOICE08_Click);
            // 
            // INVOICE04
            // 
            this.INVOICE04.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE04.BackgroundImage")));
            this.INVOICE04.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE04.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE04.FlatAppearance.BorderSize = 0;
            this.INVOICE04.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE04.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE04.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE04.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE04.LastButton = null;
            this.INVOICE04.LastModulButton = null;
            this.INVOICE04.Location = new System.Drawing.Point(260, 248);
            this.INVOICE04.MenuItemNumber = ((long)(0));
            this.INVOICE04.Name = "INVOICE04";
            this.INVOICE04.Size = new System.Drawing.Size(235, 37);
            this.INVOICE04.TabIndex = 16;
            this.INVOICE04.TabStop = false;
            this.INVOICE04.Text = "Báo nợ";
            this.INVOICE04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE04.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE04.UserActiveControl = null;
            this.INVOICE04.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE04.UserFocusedandMoveGroundImage")));
            this.INVOICE04.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE04.UserFocusedImage")));
            this.INVOICE04.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE04.UserMouseLeaveImage")));
            this.INVOICE04.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE04.UserMouseMoveImage")));
            this.INVOICE04.UseVisualStyleBackColor = false;
            this.INVOICE04.Click += new System.EventHandler(this.INVOICE04_Click);
            // 
            // INVOICE03
            // 
            this.INVOICE03.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE03.BackgroundImage")));
            this.INVOICE03.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE03.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE03.FlatAppearance.BorderSize = 0;
            this.INVOICE03.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE03.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE03.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE03.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE03.LastButton = null;
            this.INVOICE03.LastModulButton = null;
            this.INVOICE03.Location = new System.Drawing.Point(260, 211);
            this.INVOICE03.MenuItemNumber = ((long)(0));
            this.INVOICE03.Name = "INVOICE03";
            this.INVOICE03.Size = new System.Drawing.Size(235, 37);
            this.INVOICE03.TabIndex = 15;
            this.INVOICE03.TabStop = false;
            this.INVOICE03.Text = "Báo có";
            this.INVOICE03.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE03.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE03.UserActiveControl = null;
            this.INVOICE03.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE03.UserFocusedandMoveGroundImage")));
            this.INVOICE03.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE03.UserFocusedImage")));
            this.INVOICE03.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE03.UserMouseLeaveImage")));
            this.INVOICE03.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE03.UserMouseMoveImage")));
            this.INVOICE03.UseVisualStyleBackColor = false;
            this.INVOICE03.Click += new System.EventHandler(this.INVOICE03_Click);
            // 
            // INVOICE05
            // 
            this.INVOICE05.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE05.BackgroundImage")));
            this.INVOICE05.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE05.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE05.FlatAppearance.BorderSize = 0;
            this.INVOICE05.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE05.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE05.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE05.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE05.LastButton = null;
            this.INVOICE05.LastModulButton = null;
            this.INVOICE05.Location = new System.Drawing.Point(260, 285);
            this.INVOICE05.MenuItemNumber = ((long)(0));
            this.INVOICE05.Name = "INVOICE05";
            this.INVOICE05.Size = new System.Drawing.Size(235, 37);
            this.INVOICE05.TabIndex = 17;
            this.INVOICE05.TabStop = false;
            this.INVOICE05.Text = "Chuyển thành phẩm";
            this.INVOICE05.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE05.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE05.UserActiveControl = null;
            this.INVOICE05.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE05.UserFocusedandMoveGroundImage")));
            this.INVOICE05.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE05.UserFocusedImage")));
            this.INVOICE05.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE05.UserMouseLeaveImage")));
            this.INVOICE05.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE05.UserMouseMoveImage")));
            this.INVOICE05.UseVisualStyleBackColor = false;
            this.INVOICE05.Click += new System.EventHandler(this.INVOICE05_Click);
            // 
            // INVOICE02
            // 
            this.INVOICE02.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE02.BackgroundImage")));
            this.INVOICE02.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE02.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE02.FlatAppearance.BorderSize = 0;
            this.INVOICE02.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE02.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE02.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE02.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE02.LastButton = null;
            this.INVOICE02.LastModulButton = null;
            this.INVOICE02.Location = new System.Drawing.Point(260, 175);
            this.INVOICE02.MenuItemNumber = ((long)(0));
            this.INVOICE02.Name = "INVOICE02";
            this.INVOICE02.Size = new System.Drawing.Size(235, 37);
            this.INVOICE02.TabIndex = 14;
            this.INVOICE02.TabStop = false;
            this.INVOICE02.Text = "Phiếu chi";
            this.INVOICE02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE02.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE02.UserActiveControl = null;
            this.INVOICE02.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE02.UserFocusedandMoveGroundImage")));
            this.INVOICE02.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE02.UserFocusedImage")));
            this.INVOICE02.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE02.UserMouseLeaveImage")));
            this.INVOICE02.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE02.UserMouseMoveImage")));
            this.INVOICE02.UseVisualStyleBackColor = false;
            this.INVOICE02.Click += new System.EventHandler(this.INVOICE02_Click);
            // 
            // INVOICE06
            // 
            this.INVOICE06.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE06.BackgroundImage")));
            this.INVOICE06.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE06.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE06.FlatAppearance.BorderSize = 0;
            this.INVOICE06.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE06.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE06.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE06.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE06.LastButton = null;
            this.INVOICE06.LastModulButton = null;
            this.INVOICE06.Location = new System.Drawing.Point(260, 322);
            this.INVOICE06.MenuItemNumber = ((long)(0));
            this.INVOICE06.Name = "INVOICE06";
            this.INVOICE06.Size = new System.Drawing.Size(235, 37);
            this.INVOICE06.TabIndex = 18;
            this.INVOICE06.TabStop = false;
            this.INVOICE06.Text = "Chứng từ phân bổ";
            this.INVOICE06.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE06.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE06.UserActiveControl = null;
            this.INVOICE06.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE06.UserFocusedandMoveGroundImage")));
            this.INVOICE06.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE06.UserFocusedImage")));
            this.INVOICE06.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE06.UserMouseLeaveImage")));
            this.INVOICE06.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE06.UserMouseMoveImage")));
            this.INVOICE06.UseVisualStyleBackColor = false;
            this.INVOICE06.Click += new System.EventHandler(this.INVOICE06_Click);
            // 
            // INVOICE01
            // 
            this.INVOICE01.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE01.BackgroundImage")));
            this.INVOICE01.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE01.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE01.FlatAppearance.BorderSize = 0;
            this.INVOICE01.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE01.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE01.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE01.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE01.LastButton = null;
            this.INVOICE01.LastModulButton = null;
            this.INVOICE01.Location = new System.Drawing.Point(260, 139);
            this.INVOICE01.MenuItemNumber = ((long)(0));
            this.INVOICE01.Name = "INVOICE01";
            this.INVOICE01.Size = new System.Drawing.Size(235, 37);
            this.INVOICE01.TabIndex = 13;
            this.INVOICE01.TabStop = false;
            this.INVOICE01.Text = "Phiếu thu";
            this.INVOICE01.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE01.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE01.UserActiveControl = null;
            this.INVOICE01.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE01.UserFocusedandMoveGroundImage")));
            this.INVOICE01.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE01.UserFocusedImage")));
            this.INVOICE01.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE01.UserMouseLeaveImage")));
            this.INVOICE01.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE01.UserMouseMoveImage")));
            this.INVOICE01.UseVisualStyleBackColor = false;
            this.INVOICE01.Click += new System.EventHandler(this.INVOICE01_Click);
            // 
            // INVOICE07
            // 
            this.INVOICE07.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE07.BackgroundImage")));
            this.INVOICE07.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.INVOICE07.Cursor = System.Windows.Forms.Cursors.Hand;
            this.INVOICE07.FlatAppearance.BorderSize = 0;
            this.INVOICE07.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.INVOICE07.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.INVOICE07.ForeColor = System.Drawing.Color.ForestGreen;
            this.INVOICE07.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE07.LastButton = null;
            this.INVOICE07.LastModulButton = null;
            this.INVOICE07.Location = new System.Drawing.Point(260, 359);
            this.INVOICE07.MenuItemNumber = ((long)(0));
            this.INVOICE07.Name = "INVOICE07";
            this.INVOICE07.Size = new System.Drawing.Size(235, 37);
            this.INVOICE07.TabIndex = 19;
            this.INVOICE07.TabStop = false;
            this.INVOICE07.Text = "Nhập lại nguyên vật liệu";
            this.INVOICE07.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.INVOICE07.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.INVOICE07.UserActiveControl = null;
            this.INVOICE07.UserFocusedandMoveGroundImage = ((System.Drawing.Image)(resources.GetObject("INVOICE07.UserFocusedandMoveGroundImage")));
            this.INVOICE07.UserFocusedImage = ((System.Drawing.Image)(resources.GetObject("INVOICE07.UserFocusedImage")));
            this.INVOICE07.UserMouseLeaveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE07.UserMouseLeaveImage")));
            this.INVOICE07.UserMouseMoveImage = ((System.Drawing.Image)(resources.GetObject("INVOICE07.UserMouseMoveImage")));
            this.INVOICE07.UseVisualStyleBackColor = false;
            this.INVOICE07.Click += new System.EventHandler(this.INVOICE07_Click);
            // 
            // lstReports
            // 
            this.lstReports.BackColor = System.Drawing.SystemColors.Window;
            this.lstReports.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.lstReports.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.Column1});
            this.lstReports.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lstReports.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lstReports.FullRowSelect = true;
            this.lstReports.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            listViewItem1.StateImageIndex = 0;
            listViewItem2.StateImageIndex = 0;
            listViewItem3.StateImageIndex = 0;
            listViewItem4.StateImageIndex = 0;
            listViewItem5.StateImageIndex = 0;
            this.lstReports.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
            listViewItem1,
            listViewItem2,
            listViewItem3,
            listViewItem4,
            listViewItem5});
            this.lstReports.Location = new System.Drawing.Point(501, 140);
            this.lstReports.MultiSelect = false;
            this.lstReports.Name = "lstReports";
            this.lstReports.ShowItemToolTips = true;
            this.lstReports.Size = new System.Drawing.Size(285, 288);
            this.lstReports.TabIndex = 21;
            this.lstReports.TabStop = false;
            this.lstReports.UseCompatibleStateImageBehavior = false;
            this.lstReports.View = System.Windows.Forms.View.Details;
            this.lstReports.ItemActivate += new System.EventHandler(this.lstReports_ItemActivate);
            // 
            // Column1
            // 
            this.Column1.Width = 267;
            // 
            // TipControl
            // 
            this.TipControl.IsBalloon = true;
            // 
            // FormMain
            // 
            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.ClientSize = new System.Drawing.Size(794, 539);
            this.Controls.Add(this.MainScreenBox);
            this.Controls.Add(this.MainToolBar);
            this.Controls.Add(this.MainMenu);
            this.DoubleBuffered = true;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.MainMenu;
            this.MinimumSize = new System.Drawing.Size(802, 566);
            this.Name = "FormMain";
            this.Text = "PHAN MEM KE TOAN DOANH NGHIEP";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.MainMenu.ResumeLayout(false);
            this.MainMenu.PerformLayout();
            this.MainToolBar.ResumeLayout(false);
            this.MainToolBar.PerformLayout();
            this.MainScreenBox.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.BANNERPicture)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LOGOPicture)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LINEPicture1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RIGHTPicture)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.BOTTOMPicture)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LEFTPicture)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.TOPPicture)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        private void InstallFontItem_Click(object sender, EventArgs e)
        {
        }

        private void INVOICE01_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 1;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE02_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 2;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE03_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 3;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE04_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 4;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE05_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 5;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE06_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 6;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE07_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 7;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void INVOICE08_Click(object sender, EventArgs e)
        {
            this.ButtonIndex = 8;
            this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
        }

        private void InvoiceHistoryItem_Click(object sender, EventArgs e)
        {
            this.ShowInvoiceHistory();
        }

        private void InvoiceItem_Click(object sender, EventArgs e)
        {
            new FormDmCtLister().Show();
        }

        private void ListAccountItem_Click(object sender, EventArgs e)
        {
            new FormDmTkLister().Show();
        }

        private void ListCapitalItem_Click(object sender, EventArgs e)
        {
            new FormDmNvonLister().Show();
        }

        private void ListCategoryItem_Click(object sender, EventArgs e)
        {
            new FormDmKmLister().Show();
        }

        private void ListContractItem_Click(object sender, EventArgs e)
        {
            new FormDmHdLister().Show();
        }

        private void ListCurrencyItem_Click(object sender, EventArgs e)
        {
            new FormDmTteLister().Show();
        }

        private void ListCustGroupItem_Click(object sender, EventArgs e)
        {
            FormDmNhDtLister lister = new FormDmNhDtLister();
            lister.IsParentForm = true;
            lister.Show();
        }

        private void ListCustomerItem_Click(object sender, EventArgs e)
        {
            new FormDmDtLister().Show();
        }

        private void ListDepartItem_Click(object sender, EventArgs e)
        {
            new FormDmBpLister().Show();
        }

        private void ListElementItem_Click(object sender, EventArgs e)
        {
            new FormDmYtLister().Show();
        }

        private void ListFixedAssetGroupItem_Click(object sender, EventArgs e)
        {
            new FormDmNhTsLister().Show();
        }

        private void ListItemGroupItem_Click(object sender, EventArgs e)
        {
            FormDmNhVtLister lister = new FormDmNhVtLister();
            lister.IsParentForm = true;
            lister.Show();
        }

        private void ListItemItem_Click(object sender, EventArgs e)
        {
            new FormDmVtLister().Show();
        }

        private void ListNormGroupItem_Click(object sender, EventArgs e)
        {
            new FormDmNhDmLister().Show();
        }

        private void ListPriorityItem_Click(object sender, EventArgs e)
        {
            new FormDmUtLister().Show();
        }

        private void ListProductItem_Click(object sender, EventArgs e)
        {
            FormDmSpLister lister = new FormDmSpLister();
            lister.IsParentForm = true;
            lister.Show();
        }

        private void ListPurposeItem_Click(object sender, EventArgs e)
        {
            new FormDmMDSDLister().Show();
        }

        private void ListReasonItem_Click(object sender, EventArgs e)
        {
            new FormDmTGTSLister().Show();
        }

        private void ListStockItem_Click(object sender, EventArgs e)
        {
            new FormDmKhoLister().Show();
        }

        private void ListTypeItem_Click(object sender, EventArgs e)
        {
            new FormDmNxLister().Show();
        }

        private void LockDataItem_Click(object sender, EventArgs e)
        {
            new FormDataLock().Show();
        }

        private void LOGOPicture_DoubleClick(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.InitialDirectory = "";
            dialog.Filter = "JPEG (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|Bitmap files (*.bmp)|*.bmp|GIF (*.gif)|*.gif|TIFF (*.tif;*.tiff)|*.tif;*.tiff|All files (*.*)|*.*";
            dialog.CheckFileExists = true;
            dialog.ShowDialog();
            AppInstance.LOGOPicturePath = dialog.FileName;
            AppInstance.OnSave();
            if (!string.IsNullOrEmpty(AppInstance.LOGOPicturePath) && File.Exists(AppInstance.LOGOPicturePath))
            {
                this.LOGOPicture.BackgroundImage = new Bitmap(AppInstance.LOGOPicturePath);
            }
            else
            {
                this.LOGOPicture.BackgroundImage = Resources.BANNER;
            }
        }

        private void lstReports_ItemActivate(object sender, EventArgs e)
        {
            this.OnMake();
        }

        private void MemvarsItem_Click(object sender, EventArgs e)
        {
            new FormMemvars().ShowDialog();
        }

        private void MODUL01_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(1);
            }
            else
            {
                new FormCDKTLister(false).Show();
            }
        }

        private void MODUL02_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(2);
            }
            else
            {
                new FormCDKTNBLister(true, true).Show();
            }
        }

        private void MODUL03_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(3);
            }
            else
            {
                new FormCDVTLister(false).Show();
            }
        }

        private void MODUL04_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(4);
            }
            else
            {
                new FormCDKHOLister(false).Show();
            }
        }

        private void MODUL05_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(5);
            }
            else
            {
                new FormCDSLister(true, true).Show();
            }
        }

        private void MODUL06_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(6);
            }
            else
            {
                this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
            }
        }

        private void MODUL07_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(7);
            }
            else
            {
                this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
            }
        }

        private void MODUL08_Click(object sender, EventArgs e)
        {
            if (((MainButtonControl) sender).UserModulButton)
            {
                this.ChangeModul(8);
            }
            else
            {
                this.CallFunction(((MainButtonControl) sender).MenuItemNumber);
            }
        }

        protected override void OnClosed(EventArgs e)
        {
            if (this.CheckRestored)
            {
                base.OnClosed(e);
            }
            else
            {
                object buffer = AppDataAccess.GetBuffer("M_LAST_BACKUP");
                try
                {
                    if (string.IsNullOrEmpty(buffer.ToString()) || (Convert.ToDateTime(buffer).AddDays((double) AppInstance.DaysBackup) <= DateTime.Today))
                    {
                        AppDataAccess.SetBuffer("M_LAST_BACKUP", DateTime.Today.ToShortDateString());
                        AppInstance.DatabaseBackupPath = AppDataAccess.Backup(AppInstance.DatabaseName, AppInstance.DatabaseBackupPath);
                        AppInstance.OnSave();
                    }
                }
                catch
                {
                    AppDataAccess.SetBuffer("M_LAST_BACKUP", DateTime.Today.ToShortDateString());
                    AppInstance.DatabaseBackupPath = AppDataAccess.Backup(AppInstance.DatabaseName, AppInstance.DatabaseBackupPath);
                    AppInstance.OnSave();
                }
                base.OnClosed(e);
            }
        }

        private void OnMake()
        {
            if (this.lstReports.SelectedIndices.Count > 0)
            {
                string str = "QMVnSoft.ReportForms.";
                ListViewItem item = this.lstReports.Items[this.lstReports.SelectedIndices[0]];
                System.Type type = System.Type.GetType(str + ("Form" + item.SubItems[4].Text + "Viewer"));
                if (type != null)
                {
                    FormReportViewer viewer = Activator.CreateInstance(type) as FormReportViewer;
                    if (viewer != null)
                    {
                        viewer.TitleText = item.SubItems[0].Text;
                        viewer.ReportTitle = item.SubItems[2].Text;
                        viewer.ReportFile = item.SubItems[5].Text;
                        viewer.ReportSerial = item.SubItems[7].Text;
                        viewer.Show();
                    }
                }
            }
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (((this != null) && (this.MainScreenBox != null)) && ((this.MainMenu != null) && (this.MainToolBar != null)))
            {
                this.MainScreenBox.Top = (this.MainMenu.Height + this.MainToolBar.Height) + ((((base.ClientSize.Height - this.MainScreenBox.Height) - this.MainMenu.Height) - this.MainToolBar.Height) / 2);
            }
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
                case Keys.Up:
                case (Keys.Shift | Keys.Tab):
                    return false;

                case Keys.Down:
                case Keys.Tab:
                    return false;

                case Keys.F5:
                    AppInstance.UserCalculator.Show();
                    return false;

                case Keys.Return:
                case Keys.Space:
                    return false;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

        private void RegisterItem_Click(object sender, EventArgs e)
        {
            new FormSerialKey().Show();
        }

        private void ReportBalanceItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "35").Show();
        }

        private void ReportConstructItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "15").Show();
        }

        private void ReportDebtItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "05").Show();
        }

        private void ReportFixAssetItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "25").Show();
        }

        private void ReportItemItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "10").Show();
        }

        private void ReportLedgerItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "00").Show();
        }

        private void ReportProductItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "20").Show();
        }

        private void ReportStockItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "45").Show();
        }

        private void ReportTaxItem_Click(object sender, EventArgs e)
        {
            new FormReportLister(((MenuItemControl) sender).Text.Substring(4), "30").Show();
        }

        private void RestoreDataItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Hãy đóng tất cả các chức năng khi thực hiện chức năng này!\nBạn chắc chắn đã đóng hết các chức năng?", AppInstance.SoftwareName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                FormRestoreDatabase database = new FormRestoreDatabase();
                database.ShowDialog();
                if (database.CheckSucceed)
                {
                    this.CheckRestored = true;
                    base.Close();
                }
            }
        }

        private void SearchParaItem_Click(object sender, EventArgs e)
        {
            new FormDmFileLister().Show();
        }

        private void SetLOGOPicture()
        {
            this.TipControl.SetToolTip(this.LOGOPicture, "Double click to change this picture!");
            if (!string.IsNullOrEmpty(AppInstance.LOGOPicturePath) && File.Exists(AppInstance.LOGOPicturePath))
            {
                this.LOGOPicture.BackgroundImage = new Bitmap(AppInstance.LOGOPicturePath);
            }
        }

        private void SetMainCaption()
        {
            this.Text = AppInstance.NameOfEnterprise + (AppInstance.ParentCompany ? AppInstance.NameOfSubEnterprice : "");
        }

        private void SetWorkingYears()
        {
            int num = 0;
            this.CBoxYear.Items.Clear();
            if (AppInstance.OpeningDateOfSubEnterprice.Year <= DateTime.Today.Year)
            {
                for (int i = AppInstance.OpeningDateOfSubEnterprice.Year; i <= DateTime.Today.Year; i++)
                {
                    num++;
                    this.CBoxYear.Items.Add(i);
                }
                AppInstance.WorkingYear = DateTime.Today.Year;
            }
            else
            {
                this.CBoxYear.Items.Add(AppInstance.OpeningDateOfSubEnterprice.Year);
                num++;
            }
            this.CBoxYear.SelectedIndex = num - 1;
        }

        private void ShowInvoiceHistory()
        {
            FormHistoryFilter filter = new FormHistoryFilter();
            filter.InvoiceCode = "";
            filter.Ngay_Ct1 = AppInstance.StartWorkingDate;
            filter.Ngay_Ct2 = AppInstance.EndWorkingDate;
            filter.ShowDialog();
            if (filter.CheckAccepted)
            {
                new FormHistoryLister(filter.InvoiceCode, filter.Ngay_Ct1, filter.Ngay_Ct2).Show();
            }
        }

        private void UpdateTaxCodeItem_Click(object sender, EventArgs e)
        {
            new FormUpdateTaxCode().Show();
        }

        private void UserManagerItem_Click(object sender, EventArgs e)
        {
            new FormUserLister().Show();
        }

        private int ButtonIndex
        {
            get
            {
                return this.ii_ButtonIndex;
            }
            set
            {
                if (this.ii_ButtonIndex != value)
                {
                    this.ii_ButtonIndex = value;
                }
            }
        }

        private bool CheckRestored
        {
            get
            {
                return this.ib_CheckRestored;
            }
            set
            {
                this.ib_CheckRestored = value;
            }
        }

        [Browsable(false)]
        public MainButtonControl LastButton
        {
            get
            {
                return this.oLastButton;
            }
            set
            {
                if (this.oLastButton != value)
                {
                    this.oLastButton = value;
                }
            }
        }

        [Browsable(false)]
        public MainButtonControl LastModulButton
        {
            get
            {
                return this.oLastModulButton;
            }
            set
            {
                if (this.oLastModulButton != value)
                {
                    this.oLastModulButton = value;
                }
            }
        }

        private int PartActivation
        {
            get
            {
                return this.ii_PartActivation;
            }
            set
            {
                if (this.ii_PartActivation != value)
                {
                    this.ii_PartActivation = value;
                }
            }
        }

        public Control UserActiveControl
        {
            get
            {
                return this.oUserActiveControl;
            }
            set
            {
                this.oUserActiveControl = value;
            }
        }

        private void SendDataItem_Click(object sender, EventArgs e)
        {
            new FormSendData(false).Show();
        }

        private void ReceivedDataItem_Click(object sender, EventArgs e)
        {
            new FormSendData(true).Show();
        }

        private void CheckDataItem_Click(object sender, EventArgs e)
        {
            new FormKTSSViewer().Show();
        }
    }
}

